You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. http://play.golang.org/p/Twk04P1T37
2. Call ReadFromUDP with slice of length 0
What is the expected output?
IDNK. Maybe another error.
What do you see instead?
strange error message
Which compiler are you using (5g, 6g, 8g, gccgo)?
default "go build" compiler
Which operating system are you using?
Mac OS X
Which version are you using? (run 'go version')
go version go1.0.3
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
Sure, looks a bit strange.
When you pass a zero-length slice to net.ReadFrom/UDP,
underlying syscall.Recvfrom calls SYS_RECVFROM and gets
error = 0 (read succeeded) with unfilled sender's socket
address. That all-bit zero sockaddr is treated as unknown
address in syscall.Recvfrom and that's the reason why you
have an error EAFNOSUPPORT.
by apatrushev:
The text was updated successfully, but these errors were encountered: