diff --git a/src/windows/wslrelay/localhost.cpp b/src/windows/wslrelay/localhost.cpp index cad1b771b..89e1fea77 100644 --- a/src/windows/wslrelay/localhost.cpp +++ b/src/windows/wslrelay/localhost.cpp @@ -401,6 +401,7 @@ struct PortRelay wsl::windows::common::relay::SocketRelay(WindowsSocket, channel.Socket(), message.BufferSize); } + // Completes the overlapped AcceptEx initiated by ScheduleAccept, and sets accept context on the accepted socket. void CompleteAccept() { Pending = false; @@ -419,6 +420,7 @@ struct PortRelay SOCKET_ERROR); } + // If the accept completes immediately, accept context will be set on the accepted socket. bool ScheduleAccept() { WI_VERIFY(!Pending);