-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let Stream.Read() return io.EOF when connection is closed #6
Comments
so you think errBrokenPipe should be returned? |
you can test on your branch , and send me PR after that. |
fixed that! |
Wow it's quick! Thanks @xtaci |
feel free to ask any questions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's the standard behavior of connection handling, so the caller can handle gracefully.
Currently,
errConnReset
is return whencmdRST
is seen. ThecmdRST
flag is sent by the remote end toClose()
the stream, which is not an abnormal condition.The text was updated successfully, but these errors were encountered: