8000 Re-connect when peer closes the connection by dongsupark · Pull Request #1 · kinvolk/wrk2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Re-connect when peer closes the connection #1

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

Merged
merged 5 commits into from
May 15, 2019
Merged

Conversation

dongsupark
Copy link
Member

It was accumulating close-wait sockets for when peer closed connections, the code seemed to want to re-connect but was missing some corner cases. This fixes it to reconnect to the peer.

Also fix an issue of wrong error counter when doing reconnects.

See also giltene#33

janmejay and others added 5 commits May 8, 2019 12:40
When EOF gets received, it should reconnect the socket without
increasing error counter. Otherwise we could see socket read errors
even in case of ordinary reconnects.
@dongsupark dongsupark added the bug Something isn't working label May 15, 2019
@t-lo t-lo merged commit e055282 into master May 15, 2019
@t-lo t-lo deleted the dongsu/fix-reconnect branch May 15, 2019 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0