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

Update SocketReader::ReadSome SocketError when socket closed #781

Closed
wants to merge 0 commits into from

Conversation

oclancy
Copy link
Contributor

@oclancy oclancy commented Jun 22, 2023

Update SocketInitiatorThread::ReadSome SocketError when socket closed

If 0 bytes are read it means the socket has been shutdown not reset. Had this issue in a production system reporting "Connection reset by peer" (the error message for SocketError.SocketReset), but using wireshark no RST packet was seen. However we did see the FIN and FIN,ACK packets which means the socket was being deliberately shutdown. Turned out the venue had a maintenance job that shutdown the network connections.

Tldr; Setting to SocketError.Shutdown is the correct message for this scenario.

@CLAassistant
Copy link

CLAassistant commented Jun 22, 2023

CLA assistant check
All committers have signed the CLA.

@gbirchmeier
Copy link
Member

Can you please sign the CLA? See the CLAssistant comment above.

@oclancy
Copy link
Contributor Author

oclancy commented Jul 13, 2023

Apologies - thought I'd already signed it.

@gbirchmeier
Copy link
Member

why closed?

@oclancy
Copy link
Contributor Author

oclancy commented Jul 14, 2023

Sorry I had to reopen it here - I screwed up my fork a bit.

@gbirchmeier
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants