Skip to content

Fix for client response with content-length & code 0 RST_STREAM#1508

Open
kanongil wants to merge 2 commits intonghttp2:masterfrom
kanongil:content-length-reset-0-fix
Open

Fix for client response with content-length & code 0 RST_STREAM#1508
kanongil wants to merge 2 commits intonghttp2:masterfrom
kanongil:content-length-reset-0-fix

Conversation

@kanongil
Copy link
Copy Markdown

After an intense debugging session, I found that node can complete http2 client requests with partial responses. Since it uses nghttp2 to handle the transfer, it should not be possible according to the nghttp2 programmers guide, but alas it does occur!

I managed to come up with this PR to fix the issue by simply calling the validation logic on any close with error_code == 0. Feel free to adapt this to better fit your code style.

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.

2 participants