-
Notifications
You must be signed in to change notification settings - Fork 157
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
Acquired connections does not return to pool? #126
Comments
See my answer #113 (comment) I believe it solves your issue. |
Of course it solves, but what about nested connection acquiring as @mpaolini said, is it possible? |
It is an architectural error, nothing more. |
Okey. In another words it is not possible to acquire connection in a nested manner.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guys! This issue refer to #113 As @asvetlov said I began to use asyncio.wait_for
Then I provide a load of 100 concurrent requests I had seen that connections has timed out but it seems to me that they does not returned to pool at all.
My ps command gives me 10 idle postgres connections
1016 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35420) idle
1020 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35421) idle
1032 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35422) idle
1033 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35423) idle
1034 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35424) idle
1035 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35425) idle
1036 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35426) idle
1037 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35427) idle
1038 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35428) idle
1039 ? Ss 0:00 postgres: gateway gateway 127.0.0.1(35429) idle
and any new request to http://192.168.156.101:8080/ leads to concurrent.futures._base.TimeoutError
It seems to me that if the pool is completely exhausted, the connections are not returned to the pool
The text was updated successfully, but these errors were encountered: