Skip to content

Reproduce try_recv_timeout message loss https://github.com/servo/ipc-channel/issues/450#449

Closed
glyn wants to merge 3 commits intoservo:mainfrom
glyn:Windows-OsIpcReceiver-try_recv_timeout-lossy
Closed

Reproduce try_recv_timeout message loss https://github.com/servo/ipc-channel/issues/450#449
glyn wants to merge 3 commits intoservo:mainfrom
glyn:Windows-OsIpcReceiver-try_recv_timeout-lossy

Conversation

@glyn
Copy link
Copy Markdown
Contributor

@glyn glyn commented Mar 26, 2026

No description provided.

glyn and others added 3 commits March 26, 2026 09:54
When CancelIoEx returns ERROR_NOT_FOUND, the overlapped read has already
completed. Previously the buffer was restored without updating its length,
so the bytes the kernel read were silently discarded. Call
notify_completion instead, which reads the byte count from the
OVERLAPPED structure and updates read_buf accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@glyn glyn changed the title Reproduce message loss Reproduce try_recv_timeout message loss https://github.com/servo/ipc-channel/issues/450 Mar 26, 2026
@glyn
Copy link
Copy Markdown
Contributor Author

glyn commented Mar 26, 2026

Closing this PR as I am not in a position to vouch for the putative fix. See "AI Caveat" in #450 for details.

@glyn glyn closed this Mar 26, 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.

1 participant