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

Thread safe #56

Closed
newbenji opened this issue Apr 22, 2013 · 1 comment
Closed

Thread safe #56

newbenji opened this issue Apr 22, 2013 · 1 comment

Comments

@newbenji
Copy link

I have the problem it opens many connections before closing them.

It should have a pool with max connection and never be able to get pass that. As i run the code, and gets the error with to many connections.

@julienschmidt
Copy link
Member

There seems to be a bug in the database/sql package which causes too many open connections https://code.google.com/p/go/issues/detail?id=5323

Also the connection pooling is handled by the database/sql package and not by the driver. It currently lacks an option to give the user / driver control over the connection pool. The related issue is here: https://code.google.com/p/go/issues/detail?id=4805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants