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

database return error "too many clients connected" #3

Open
Rackar opened this issue Nov 28, 2018 · 1 comment
Open

database return error "too many clients connected" #3

Rackar opened this issue Nov 28, 2018 · 1 comment

Comments

@Rackar
Copy link

Rackar commented Nov 28, 2018

Hello Jason,

Thank you very much, your articles and codes are very helpful to me as a newbie now.

I am trying to build a blog webapi with forking this repository, I use Npgsql connect to a PostgreSQL database, and add some methods, but the database return error message "too many clients connected" when I debugging.

So how to close the connections in webapi? I read some documents but can't find a way to do with it.

my repo fork from yours :
https://github.com/Rackar/aspnet-core-registration-login-api

@Rackar
Copy link
Author

Rackar commented Nov 28, 2018

I got a temporary way, Add "Pooling=false;" to my ConnectionStrings, because the max of the pool is 100, just escape the pooling way.

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

No branches or pull requests

1 participant