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
Establish a TCP connection and set a deadline for now. Call syscall.RawConnRead or Write.
What did you expect to see?
0 bytes read / written and some sort of error.
What did you see instead?
0 bytes read / written and no error.
The deadline works, but there is no indication to the calling code that the deadline has passed. This makes the deadline difficult to handle as loop until an error occurs will hang. It's also not clear if there are any other reasons that a 0 bytes and no error could occur.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Establish a TCP connection and set a deadline for now. Call
syscall.RawConn
Read
orWrite
.What did you expect to see?
0 bytes read / written and some sort of error.
What did you see instead?
0 bytes read / written and no error.
The deadline works, but there is no indication to the calling code that the deadline has passed. This makes the deadline difficult to handle as loop until an error occurs will hang. It's also not clear if there are any other reasons that a 0 bytes and no error could occur.
The text was updated successfully, but these errors were encountered: