Open
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
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
Potential Fix has attached
Metadata
Assignees
Labels
No labels
Activity