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 connection before reconnect #48

Merged
merged 1 commit into from
Aug 8, 2018
Merged

close connection before reconnect #48

merged 1 commit into from
Aug 8, 2018

Conversation

rutaka-n
Copy link
Contributor

@rutaka-n rutaka-n commented Aug 8, 2018

Hi. I found some bug. Influxdb on my server was broken, so it responded with 500 status code, and influx client tried to reconnect every time, but it did not close tcp connection before reconnect, so application opened so much connection and fail because of limits.

I handle this case. It is resolve my problem.
looking forward feedback!

Old connection still open after reconnect, it my be a problem if there are many of them
@surik
Copy link
Contributor

surik commented Aug 8, 2018

Hi @rutaka-n, indeed connection is not closed in this case. A big thanks for the fix!

@surik surik merged commit 65fc4be into travelping:master Aug 8, 2018
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.

2 participants