-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
http2, tls: check content-length, fix RST and GOAWAY logic #53160
Open
szmarczak
wants to merge
52
commits into
nodejs:main
Choose a base branch
from
szmarczak:fix-http2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
4d7aba2
http2, tls: check content-length, fix RST and GOAWAY logic
szmarczak 60bdd9f
Check content-length before calling stream_close_callback with error …
kanongil 0ee22c8
fix(http2): check content-length, fix sending RST
szmarczak ca3c23d
fix a test
szmarczak 2cd1b95
[skip ci] fix: lint
szmarczak 12093cb
[skip ci] fix 1 flaky test, 3 more to go
szmarczak c363085
more bug fixes
szmarczak 771bf72
[skip ci] fix a test
szmarczak 0ad5ec5
more bug fixes
szmarczak 3191fb7
fix two tests
szmarczak b1905dd
fix goaway bugs
szmarczak c2a96a7
fix last test? ill check linux in a sec
szmarczak 87c36dd
fix a bug
szmarczak 5eeb849
format cpp
szmarczak 22d9bb2
fix tests
szmarczak a9b456e
NGHTTP2_CONNECT_ERROR
szmarczak 0c32c92
test econnreset
szmarczak e67926d
[skip ci] hascrypto
szmarczak 2ed1755
bug fixes
szmarczak 3334e47
fix
szmarczak 14f6371
fix errors
szmarczak de563b1
more verbose error checks
szmarczak 107dc65
refactor _destroy
szmarczak d44fbbb
less diff
szmarczak 8994699
fix dropped rsts and goaways
szmarczak a48b01f
[skip ci] fix missing return
szmarczak 0872c51
[skip ci] fix that return
szmarczak 8b75779
throw on frame error
szmarczak 28c80e5
fix a test
szmarczak 64a1337
fix frame error
szmarczak 23f3b8c
fix frame errors
szmarczak 585dd24
send rst on frame error if server
szmarczak 68ef526
fix that again
szmarczak 384b09f
fix that again
szmarczak 8275e2e
Check if session_call_on_frame_received frees the stream in session_a…
szmarczak 8fa7711
patch
szmarczak c59704a
Allow RST_STREAM before GOAWAY
szmarczak 1b3ad59
fixup
szmarczak 1d57327
fix
szmarczak e78ba74
fix
szmarczak 0c3ac35
Fix server close not being emitted if TLS socket RSTs
szmarczak 9f96023
fix
szmarczak 7c152da
does not matter if TCP FIN or TCP RST
szmarczak 4496988
default to NGHTTP2_INTERNAL_ERROR
szmarczak 126fa33
lint
szmarczak 4353b3f
fix flaky test-http2-respond-with-file-connection-abort.js
szmarczak 246b623
fix lint
szmarczak 5ce564d
try to fix windows
szmarczak b9b3136
fix moot condition
szmarczak 58be6b5
remove moot errorSendingFrame
szmarczak 56dea47
note
szmarczak 2f4d66f
quick fix
szmarczak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
session.close()
(with this PR) callssession.destroy()
ifstate.streams
andstate.pendingStreams
are empty. Therefore it could obstructsession[kMaybeDestroy](err)
. Now it just marks the session as closed, hopefully fixing Windows:test-http2-server-sessionerror.js
andtest-http2-too-many-settings.js
that do not create any streams.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed it fixed that!