sockfilt: add logmsg output to select_ws_wait_thread on Windows
Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #5086
This commit is contained in:
parent
361d4f3fdc
commit
6d45588ba3
@ -589,6 +589,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* there is some data available, stop waiting */
|
/* there is some data available, stop waiting */
|
||||||
|
logmsg("[select_ws_wait_thread] data available on DISK: %p", handle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -618,6 +619,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* there is some data available, stop waiting */
|
/* there is some data available, stop waiting */
|
||||||
|
logmsg("[select_ws_wait_thread] data available on CHAR: %p", handle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -640,15 +642,21 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
|
|||||||
SleepEx(0, FALSE);
|
SleepEx(0, FALSE);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
logmsg("[select_ws_wait_thread] PeekNamedPipe len: %d", length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* if the pipe has been closed, sleep and continue waiting */
|
/* if the pipe has been closed, sleep and continue waiting */
|
||||||
if(GetLastError() == ERROR_BROKEN_PIPE) {
|
length = GetLastError();
|
||||||
|
logmsg("[select_ws_wait_thread] PeekNamedPipe error: %d", length);
|
||||||
|
if(length == ERROR_BROKEN_PIPE) {
|
||||||
SleepEx(0, FALSE);
|
SleepEx(0, FALSE);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* there is some data available, stop waiting */
|
/* there is some data available, stop waiting */
|
||||||
|
logmsg("[select_ws_wait_thread] data available on PIPE: %p", handle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -656,6 +664,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
|
|||||||
default:
|
default:
|
||||||
/* The handle has an unknown type, try to wait on it */
|
/* The handle has an unknown type, try to wait on it */
|
||||||
WaitForMultipleObjectsEx(2, handles, FALSE, INFINITE, FALSE);
|
WaitForMultipleObjectsEx(2, handles, FALSE, INFINITE, FALSE);
|
||||||
|
logmsg("[select_ws_wait_thread] data available on HANDLE: %p", handle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user