Skip to content

bufq unwrite fix - #15136

Closed
icing wants to merge 5 commits into
curl:masterfrom
icing:bufq-unwrite-fix
Closed

bufq unwrite fix#15136
icing wants to merge 5 commits into
curl:masterfrom
icing:bufq-unwrite-fix

Conversation

@icing

@icing icing commented Oct 3, 2024

Copy link
Copy Markdown
Contributor

Curl_bufq_unwrite() used the head instead of the tail chunk to shrink the bufq's content. Fix this and add test case that checks correct behaviour.

Affects only the WebSocket protocol, not used anywhere else.

@bagder bagder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonus points is handed out if you add some blurb about this function to docs/internals/BUFQ.md ...

@icing

icing commented Oct 3, 2024

Copy link
Copy Markdown
Contributor Author

Bonus points is handed out if you add some blurb about this function to docs/internals/BUFQ.md ...

Added.

icing added 3 commits October 3, 2024 11:52
`Curl_bufq_unwrite()` used the head instead of the tail chunk to
shrink the bufq's content. Fix this and add test case that checks
correct behaviour.
@icing
icing force-pushed the bufq-unwrite-fix branch from 261a3a7 to 511730b Compare October 3, 2024 09:56
@github-actions github-actions Bot added the CI Continuous Integration label Oct 3, 2024
@bagder

bagder commented Oct 3, 2024

Copy link
Copy Markdown
Member

🥇

@bagder bagder closed this in 2400a6c Oct 3, 2024
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
`Curl_bufq_unwrite()` used the head instead of the tail chunk to shrink
the bufq's content. Fix this and add test case that checks correct
behaviour.

Amended test 2601 accordingly.

Reported-by: Chris Stubbs
Closes curl#15136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tests WebSocket

Development

Successfully merging this pull request may close these issues.

2 participants