Skip to content

cdc: handle short writes in flush instead of asserting#987

Closed
by965738071 wants to merge 1 commit into
ZigEmbeddedGroup:mainfrom
by965738071:fix/cdc-flush-short-write
Closed

cdc: handle short writes in flush instead of asserting#987
by965738071 wants to merge 1 commit into
ZigEmbeddedGroup:mainfrom
by965738071:fix/cdc-flush-short-write

Conversation

@by965738071

Copy link
Copy Markdown
Contributor

ep_writev can return fewer bytes than requested. The old assert was stripped in release builds, silently dropping data on short writes. Now we keep the unsent tail in the buffer and retry on the next flush.

ep_writev can return fewer bytes than requested. The old assert
was stripped in release builds, silently dropping data on short
writes. Now we keep the unsent tail in the buffer and retry on
the next flush.
@mattnite

Copy link
Copy Markdown
Contributor

How did you test?

@mattnite

Copy link
Copy Markdown
Contributor

This needs manual testing and your other answers around this are indicating you're finding easy bugs with an LLM.

I'm not going to accept this one without testing, so please open an issue instead.

@mattnite mattnite closed this Jul 17, 2026
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