You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix IOCP double-completion race and check SetFileCompletionNotificationModes
Two fixes:
1. relay.cpp: Call SetFileCompletionNotificationModes BEFORE
CreateIoCompletionPort. If FILE_SKIP_COMPLETION_PORT_ON_SUCCESS is
not supported for a handle type (e.g. certain socket types), fall
back to event-based mode entirely. Previously the handle was
associated with the IOCP without skip-on-success, causing
synchronous completions to both be processed inline by Schedule()
and queued to the IOCP — a double-processing race that manifests
as ERROR_NO_DATA (232) in ContainerLogs/ContainerAttach tests.
2. localhost.cpp: THROW_IF_WIN32_BOOL_FALSE on
SetFileCompletionNotificationModes in the port relay AcceptThread.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments