socket:recv/3
inconsistent behavior on Linux with UDP and timeout
#9172
Labels
bug
Issue is reported as a bug
Describe the bug
On Linux, using docker containers, I can see an inconsistent behavior between OTP25, OTP26 and OTP27 and I couldn't find an explaination in OTP27.0 release notes.
socket:recv/3
(notsocket:recvfrom/3
) with an UDP IPv4 socket, a Length greater than available data and a positive timeout will return{ok, Data}
on OTP25 and OTP27 and{error, {timeout, Data}}
on OTP26. On macOS, all three versions return{ok, Data}
.To Reproduce
podman run -it docker.io/erlang:26
then:
Affected versions
OTP26 (tested with 26.0, 26.1 and 26).
The text was updated successfully, but these errors were encountered: