Skip to content

h2, fix data_pending check#16098

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:h2-pending-fix
Closed

h2, fix data_pending check#16098
icing wants to merge 1 commit into
curl:masterfrom
icing:h2-pending-fix

Conversation

@icing
Copy link
Copy Markdown
Contributor

@icing icing commented Jan 27, 2025

The h2 filter mistakenly also checked sendbuf when asked about pending data. The call is only meant to account for buffered data that still needs to be received.

Also, remove obsolete recvbuf in stream as we write received headers and data directly.

refs #16084

The h2 filter mistakenly also checked `sendbuf` when asked
about pending data. The call is only meant to account for
buffered data that still needs to be received.

Also, remove obsolete recvbuf in stream as we write received
headers and data directly.

refs curl#16084
Comment thread lib/http2.c
@bagder bagder closed this in 5b73a7b Jan 27, 2025
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
The h2 filter mistakenly also checked `sendbuf` when asked
about pending data. The call is only meant to account for
buffered data that still needs to be received.

Also, remove obsolete recvbuf in stream as we write received
headers and data directly.

Fixes curl#16084
Closes curl#16098
Reported-by: Deniz Sökmen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants