What steps will reproduce the problem?
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.