Repository navigation
Conversation
aioquic 1.8.0 removed HTTP/3 server push: send_push_promise() now always raises NoAvailablePushIDError, and both are only kept as deprecated stubs that will go away. Applications were still offered the http.response.push extension on HTTP/3, although no push could ever be sent. Stop offering the extension on HTTP/3 and drop the push code from the HTTP/3 protocol. HTTP/2 push is unchanged.
QUIC header parsing relied on two things aioquic doesn't promise to keep: - PACKET_TYPE_INITIAL, which aioquic only keeps as a backwards compatible alias of QuicPacketType.INITIAL since 1.2.0. Compare against the enum instead, and require aioquic 1.2.0, the first release to have it. - A hard-coded connection ID length of 8 for short header packets, which only matched aioquic's default. Use the length from the QUIC configuration instead. Also require aioquic below 2.0, as aioquic makes no stability guarantee past 1.x. The tests now run with the h3 extra installed, so the new QUIC tests can use aioquic.
A Version Negotiation packet has version 0, which is never in the supported versions, so hypercorn answered it with a Version Negotiation packet of its own. Two servers that receive each other's Version Negotiation packets would keep answering each other indefinitely. Skip Version Negotiation packets when checking the version, as aioquic's own server does.
Contributor
Author
|
@pgjones the CI failures seem unrelated to my changes |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
aioquic 1.8.0 removed HTTP/3 server push. Hypercorn still offered the http.response.push extension on HTTP/3 and called the send_push_promise() stub, which aioquic only keeps for compatibility.
The tests now run with the h3 extra, so the new QUIC tests can run in CI.