encode / httpcore

A minimal HTTP client. ⚙️
https://www.encode.io/httpcore/
BSD 3-Clause "New" or "Revised" License
465 stars 105 forks source link

Add a test showing that slow, overlapping requests back each other up in HTTP/2. #948

Open nmlorg opened 2 months ago

nmlorg commented 2 months ago

Summary

Quick proof of concept related to https://github.com/encode/httpx/discussions/3278 (and possibly https://github.com/encode/httpcore/discussions/778).

As committed:

$ pytest tests/*/test_http2.py
⋮
tests/_async/test_http2.py ....................F
tests/_sync/test_http2.py ..........F
⋮
>       assert fetches == [1.0] * 5
E       assert [1.4, 1.4, 1.2, 1.8, 1.0] == [1.0, 1.0, 1.0, 1.0, 1.0]

With my work in progress:

$ pytest tests/_sync/test_http2.py
⋮
tests/_sync/test_http2.py ...........

Checklist