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 client response with content-length & code 0 RST_STREAM #1508

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kanongil
Copy link

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.

None yet

2 participants