Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for invalid header panic corrected #695

Merged
merged 6 commits into from
Jun 22, 2023

Conversation

f0rki
Copy link
Contributor

@f0rki f0rki commented Jun 15, 2023

Corrected fix in #690 - the root cause was that informational header frames are ignored, even if received by the server. However, the stream was still scheduled in pending_accept. This then triggers the take_request, while nothing is put in the pending_recv queue, which then causes the panic.

Michael Rodler and others added 2 commits June 14, 2023 23:46
…ake_request` function return a Result"

This reverts commit 66c36c4.
… pseudo-header in the informational range of status codes

Signed-off-by: Michael Rodler <[email protected]>
Co-Authored-By: f0rki <[email protected]>
Reviewed-by: Daniele Ahmed <[email protected]>
@f0rki f0rki changed the title Invalid header panic corrected Fix for invalid header panic corrected Jun 15, 2023
src/proto/streams/recv.rs Outdated Show resolved Hide resolved
src/proto/streams/recv.rs Outdated Show resolved Hide resolved
@f0rki f0rki force-pushed the invalid-header-panic-corrected branch from a528d64 to 07397f4 Compare June 16, 2023 14:20
@f0rki f0rki force-pushed the invalid-header-panic-corrected branch from 07397f4 to 54f965a Compare June 16, 2023 14:20
@seanmonstar seanmonstar merged commit 478f7b9 into hyperium:master Jun 22, 2023
0xE282B0 pushed a commit to 0xE282B0/h2 that referenced this pull request Jan 11, 2024
* Revert "fix panic on receiving invalid headers frame by making the `take_request` function return a Result"

This reverts commit 66c36c4.

* proper fix for the panic in server receiving a request with a :status pseudo-header in the informational range of status codes

---------

Signed-off-by: Michael Rodler <[email protected]>
Co-authored-by: Michael Rodler <[email protected]>
Co-authored-by: Daniele Ahmed <[email protected]>
0xE282B0 pushed a commit to 0xE282B0/h2 that referenced this pull request Jan 11, 2024
* Revert "fix panic on receiving invalid headers frame by making the `take_request` function return a Result"

This reverts commit 66c36c4.

* proper fix for the panic in server receiving a request with a :status pseudo-header in the informational range of status codes

---------

Signed-off-by: Michael Rodler <[email protected]>
Co-authored-by: Michael Rodler <[email protected]>
Co-authored-by: Daniele Ahmed <[email protected]>
0xE282B0 pushed a commit to 0xE282B0/h2 that referenced this pull request Jan 16, 2024
* Revert "fix panic on receiving invalid headers frame by making the `take_request` function return a Result"

This reverts commit 66c36c4.

* proper fix for the panic in server receiving a request with a :status pseudo-header in the informational range of status codes

---------

Signed-off-by: Michael Rodler <[email protected]>
Co-authored-by: Michael Rodler <[email protected]>
Co-authored-by: Daniele Ahmed <[email protected]>
Signed-off-by: Sven Pfennig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants