Does HTTPX support single-connection HTTP/2 with unbounded concurrent requests?
See original GitHub issueFirst sorry for opening an issue but I didn’t find a better way to reach you. Thank you for developing a good looking library which supports HTTP/2.
We are tinking for switching to HTTPX. Before I start with the implementation, I have two questions about parallel requests. Those things were not clear from the documentation.
-
We have a server that supports HTTP/2 protocol and wants to send multiple parallel requests through one connection to the server. Does
httpx.Client()
use of one connection for multiple parallel requests or it connects multiple times? What abouthttpx.parallel()
? -
If it is possible to send multiple parallel requests through one connection, do we need to handle the number of requests manually when we send a huge number of requests (e.g. 1000) - that we do not reach the limit of requests per connection. What I mean is do we need to send let say 100 requests and then wait for responses or do httpx library do that for us?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Closing the question now that we have relevant issues to track it.
@tomchristie and @sethmlarson thank you for great and fast response.