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

Close the read/recv loop if we receive {:error, "socket closed"} #48

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

chen-anders
Copy link
Contributor

@chen-anders chen-anders commented Dec 15, 2023

This PR adds handling for {:error, "socket closed"} similar to how the reference golang client handles these issues by closing the connection: https://github.com/nsqio/go-nsq/blob/master/conn.go#L50

Closing the connection in our case also terminates the process, which will cause the supervisor to spin up a new process.

@chen-anders chen-anders force-pushed the anders/debug-socket-closed branch 2 times, most recently from d7c00de to ba227c3 Compare December 18, 2023 12:25
@chen-anders chen-anders changed the base branch from prep-1.2.0-release to master December 18, 2023 12:25
@chen-anders chen-anders marked this pull request as ready for review December 18, 2023 12:25
@chen-anders chen-anders changed the title Branch for debugging {:error, "socket closed"} errors Close the read/recv loop if we receive {:error, "socket closed"} Dec 18, 2023
@chen-anders chen-anders force-pushed the anders/debug-socket-closed branch from ba227c3 to 47b0c9d Compare December 18, 2023 12:31
@chen-anders chen-anders merged commit a3e27b7 into master Dec 21, 2023
6 checks passed
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