Connections apparently not reused when using stream() #989
Unanswered
neoq
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In this example:
I would expect the output to show one AsyncHTTPConnection with Request Count: 2 being used. However, I see the following:
indicating the context manager closes the connection in between.
With
http2=True, http1=False
I get the expected connection reuse:With regular
request()
, notstream()
:I get the connection reuse I expect, but I would like to stream both request and response body.
Maybe I simply misunderstand the purpose of the context manager of
stream
Thanks
Beta Was this translation helpful? Give feedback.
All reactions