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?
0. addr, err = net.ResolveUDPAddr("0.0.0.0:9876")
1. conn, err = net.ListenUDP("udp", addr)
2. conn.SetReadTimeout(10000)
3. n, peer, err = conn.ReadFromUDP(mem)
What is the expected output?
err == os.EAGAIN
err.String() == "resource temporarily unavailable"
The docs say: "ReadFromUDP can be made to time out and return err ==
os.EAGAIN after a fixed time limit; see SetTimeout and SetReadTimeout."
What do you see instead?
err != os.EAGAIN
err.String() == "recvfrom udp:[::]:9876->: resource temporarily
unavailable"
What is your $GOOS? linux $GOARCH? 386
Which revision are you using? (hg identify)
28cb094e4ff1 tip
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: