Skip to content

Fix of pool leaking #913

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

Closed
wants to merge 4 commits into from
Closed

Conversation

NumminorihSF
Copy link
Contributor

There is some bug with connection pool.
To reproduce it - you need connect to postgresql, start request and kill db process by kill -9. Client will not be free on any time.

To stop this, we can add heartbeat to net.Socket on pg.Client. To force backward capability heartbeat on default is 0. If heartbeat is 0, no heartbeat will be used.

I have tested it on my db, seems, that it works fine.

P.S. sorry for my English.

@marcbachmann
Copy link

👍 Would be nice if this lands in master soon

@NumminorihSF NumminorihSF mentioned this pull request Feb 26, 2016
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