Skip to content

UDPConn.ReadFrom hangs intermittently #472

@gopherbot

Description

@gopherbot

by runningwild:

What steps will reproduce the problem?
1. Get a UDPConn with net.ListenUDP
2. Set the timeout to something like 1000000ns or more
3. Keep calling UDPConn.ReadFrom and eventually it will hang


What is the expected output? What do you see instead?
It should break every time with the expected os.EAGAIN (currently it is a different
error, this is 
mentioned in another bug)
Instead, sometimes, it hangs, and it seems fairly random when it will hang.  Also when I 
decrease the timeout to 1ns I haven't seen it hang.

What is your $GOOS?  $GOARCH?
darwin, amd64

Which revision are you using?  (hg identify)
719a3506aa5b tip

Attachments:

  1. net.go (679 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions