Replies: 1 comment 3 replies
-
👀 - I really wouldn't know what behaviour to expect with that usage. I'd strongly recommend that you instantiate the pool within the async context, rather than outside it... async def main():
async with AsyncConnectionPool(keepalive_expiry=1.0) as pool:
response = await pool.request("GET", "https://httpbin.org/get")
assert response.status == 200
Right. I don't know enough about Django under ASGI to figure out if there's some top-level async context where you can instantiate an |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm splitting the issue from here: encode/uvicorn#1251.
Environment
httpcore==0.14.7
Example
Expected
I assume that
httpcore
should silently ignore the error since we want the connection closed and it just isn't valid anymore.Actual
With
uvloop
you get something like (quoting the differing part at the bottom):Beta Was this translation helpful? Give feedback.
All reactions