libuv loop stuck on GetQueuedCompletionStatusEx

162 views
Skip to first unread message

fkp...@gmail.com

unread,
Feb 4, 2019, 2:18:49 AM2/4/19
to libuv
hey,
after sorting another issue - it seems that i have my libuv loop stuck on "GetQueuedCompletionStatusEx".
Now this happens almost everytime after some timer timedout(and it's callback was called -> which simply puts something on some queue to be run with diffrent handle).
Now, looking deeper - it seems that stuck since libuv passes the timeout param as "0xFFFFFF" or "-1" which is by "GetQueuedCompletionStatusEx" docs causes it to block indefentily till a compleation packet has arrived.
Sniffing the port - shows that packets from the server do arrive but still OnRead is not being called....

Just for sports, i've set a fake timer each time i start the loop and i start to the "MAX_INT" boundary timeout set in "uv__next_timer"....

has anyone met such issue?

Thanks ahead,
Fima
Reply all
Reply to author
Forward
0 new messages