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

Fix concurrent socket connection issue #44

Merged
merged 2 commits into from
Jul 12, 2020

Conversation

jaredcnance
Copy link
Member

@jaredcnance jaredcnance commented Jul 12, 2020

Closes #40

This makes the TCP client safe to use across threads by allowing only a single thread to connect at a time. Additionally, it adds a single connect+retry for messages that fail because of a disconnected peer. Note that there is currently an issue with the test_can_recover_from_agent_shutdown that is a result of the test socket not being properly cleaned between shutdown and resume. This causes the test agent to fail to start occasionally.

@jaredcnance jaredcnance merged commit b873620 into master Jul 12, 2020
@jaredcnance jaredcnance deleted the jared/#40-tcp-socket-errors branch July 12, 2020 15:33
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.

TCP Socket errors - Transport endpoint is already connected
1 participant