Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: using File methods on Conn/Listener/PacketConn disables non-blocking I/O and runtime-integrated network poller's deadline features #9420
Calling a network connection's
This won't timeout correctly:
It would be nice if deadlines still worked when a socket is in blocking mode, but if it's not possible this should at least be documented.
I understand, but I think it could use a little more precise wording in the documentation as to what "sets the underlying os.File to blocking mode" implies. I wouldn't expect the runtime to start setting RCVTIMEO and SNDTIMEO, but I also couldn't find an stanza stating exactly what the behavior would be.