-
-
Notifications
You must be signed in to change notification settings - Fork 508
Open
Labels
Description
Describe the bug
nng_socket_close may hang on window in some situations, from the call stack, it is waiting for pipe close.
Line 691 in dba356d
while (!nni_list_empty(&sock->s_pipes)) { |
Expected behavior
It should return normally
Actual Behavior
Hang
To Reproduce
Possible reproduce senario:
Create IPC/pair socket, but don't send any data for a period large than 5 seconds, and then close the socket.
** Environment Details **
- NNG Version: latest(v2.0)
- Windows 10
- Visual Studio 2022
- Static
Additional context
from my debugging, there is a issue in IOCP worker, timeout error does not handle correctly, which cause it exit unexpected.
nng/src/platform/windows/win_io.c
Line 42 in dba356d
if (olpd == NULL) { |
Potential Fix has attached