Loading src/event/iocp.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -289,8 +289,9 @@ namespace netplus { ULONG_PTR key = 0; OVERLAPPED* pov = nullptr; BOOL ok = GetQueuedCompletionStatus(st->iocp, &bytes, &key, &pov, INFINITE); BOOL ok = GetQueuedCompletionStatus(st->iocp, &bytes, &key, &pov, 1000); if (!event::Running) break; if (!ok && !pov) continue; // timeout or spurious wake if (!pov && key == 0) continue; socket* sockObj = reinterpret_cast<socket*>(key); Loading Loading
src/event/iocp.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -289,8 +289,9 @@ namespace netplus { ULONG_PTR key = 0; OVERLAPPED* pov = nullptr; BOOL ok = GetQueuedCompletionStatus(st->iocp, &bytes, &key, &pov, INFINITE); BOOL ok = GetQueuedCompletionStatus(st->iocp, &bytes, &key, &pov, 1000); if (!event::Running) break; if (!ok && !pov) continue; // timeout or spurious wake if (!pov && key == 0) continue; socket* sockObj = reinterpret_cast<socket*>(key); Loading