We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
master
AsyncClient doesn't close httpcore's stream after performing request, the bug shows itself in locking on connection pool's semaphore.
AsyncClient
httpcore
$ python3.8 -m asyncio >>> import asyncio >>> import httpx >>> c = httpx.AsyncClient() >>> await c.get('http://httpbin.org/') <Response [200 OK]> >>> c._transport._connections {(b'http', b'httpbin.org', 80): {<AsyncHTTPConnection http_version=HTTP/1.1 state=2>}} >>> await c.get('http://httpbin.org/') <Response [200 OK]> >>> c._transport._connections {(b'http', b'httpbin.org', 80): {<AsyncHTTPConnection http_version=HTTP/1.1 state=2>, <AsyncHTTPConnection http_version=HTTP/1.1 state=2>}}
There should be one connection in pool in IDLE state.
IDLE
There are 2 connection in ACTIVE state in pool after performing and finishing request.
ACTIVE
Bug is most obvious in long-running process making regular request to one endpoint.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Checklist
master
.Describe the bug
AsyncClient
doesn't closehttpcore
's stream after performing request, the bug shows itself in locking on connection pool's semaphore.To reproduce
Expected behavior
There should be one connection in pool in
IDLE
state.Actual behavior
There are 2 connection in
ACTIVE
state in pool after performing and finishing request.Debugging material
Environment
Additional context
Bug is most obvious in long-running process making regular request to one endpoint.
The text was updated successfully, but these errors were encountered: