Skip to content

websocket: error on EOS with incomplete frame - #23188

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:ws-eos-frame-incomplete
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:ws-eos-frame-incomplete

Conversation

@icing

@icing icing commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

When the connection is closed, a websocket client writer that sees the EOS in the middle of a frame errors out.

reported-by: Joshua Rogers

When the connection is closed, a websocket client writer that
sees the EOS in the middle of a frame errors out.

reported-by: Joshua Rogers

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Regression coverage is needed for truncated WebSocket frames.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Detects end-of-stream while decoding an incomplete WebSocket frame.

Changes:

  • Checks buffered bytes and decoder state after flushing.
  • Returns CURLE_RECV_ERROR for incomplete frames.
File Description
lib/​ws.c Adds incomplete-frame EOS detection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/ws.c Resolved
@jay jay closed this in e08d306 Oct 7, 2026
@jay

jay commented Oct 7, 2026

Copy link
Copy Markdown
Member

Thanks

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