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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm splitting the issue from here: Kludex/uvicorn#1251.
Environment
httpcore==0.14.7Example
Expected
I assume that
httpcoreshould silently ignore the error since we want the connection closed and it just isn't valid anymore.Actual
With
uvloopyou get something like (quoting the differing part at the bottom):Beta Was this translation helpful? Give feedback.
All reactions