question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does HTTPX support single-connection HTTP/2 with unbounded concurrent requests?

See original GitHub issue

First 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.

  1. 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 about httpx.parallel()?

  2. 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:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tomchristiecommented, Aug 27, 2019

Closing the question now that we have relevant issues to track it.

0reactions
PrimozGodeccommented, Aug 27, 2019

@tomchristie and @sethmlarson thank you for great and fast response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP/2 Frequently Asked Questions
Yes, mostly. For HTTP/2 over TLS ( h2 ), if you do not implement the http1. 1 ALPN identifier, then you will not...
Read more >
An in depth overview of HTTP/2 · JBoss Community - Undertow
HTTP/2 supports multiplexing several streams over a single connection. This means that a client can send multiple requests on the same ...
Read more >
Is the per-host connection limit raised with HTTP/2?
With HTTP/2, browsers open only 1 connection per domain. However, thanks to the multiplexing feature of the HTTP/2 protocol, the number of concurrent...
Read more >
HTTP2 Multiplexing: The devil is in the details - Blog
Yes and no… It's complicated. When performing multiple parallel requests, there are two approaches: multiplex multiple requests over a single ...
Read more >
DNS-over-HTTPS — Unbound 1.17.0 documentation
The DoH implementation in Unbound requires TLS, and only works over HTTP/2. The query pipelining and out-of-order processing functionality that is provided by ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found