Skip to content
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

writing on closed connection without getting error ! #39

Open
mahditakrim opened this issue May 29, 2023 · 0 comments
Open

writing on closed connection without getting error ! #39

mahditakrim opened this issue May 29, 2023 · 0 comments
Labels
pending/investigation question Further information is requested

Comments

@mahditakrim
Copy link

After I close the client connection, I write message on it with conn.WriteJSON() and here is what happens:

  • the first attempt to write returns just fine however the connection is closed and I expect to have error.
  • the second attempt to write returns error which is "write tcp 127.0.0.1:9090->127.0.0.1:41274: write: broken pipe"

So the question is why the very first write on a closed connection does not return error ?!

@savsgio savsgio added bug Something isn't working pending/investigation question Further information is requested and removed bug Something isn't working labels Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending/investigation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants