mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:51:41 +03:00
tests/server/sockfilt: avoid possible endless loop on Windows
Seen to happen when run under WINE v10.0 on macOS. ``` $ CURL_TEST_EXE_EXT_SRV=.exe CURL_TEST_EXE_EXT_TOOL=.exe \ CURL_TEST_EXE_RUNNER=wine TFLAGS='951 -t' ninja tests [...] 16:02:18.607002 [select_ws_wait_thread] PeekNamedPipe error: (0x00000032) - Request not supported. [...endless repeat...] ``` Closes #20478
This commit is contained in:
parent
373e89a021
commit
154dff6acc
1 changed files with 2 additions and 0 deletions
|
|
@ -530,6 +530,8 @@ static DWORD WINAPI select_ws_wait_thread(void *lpParameter)
|
|||
curlx_winapi_strerror(ret, buffer, sizeof(buffer));
|
||||
logmsg("[select_ws_wait_thread] PeekNamedPipe error: (0x%08lx) - %s",
|
||||
ret, buffer);
|
||||
if(ret == ERROR_NOT_SUPPORTED) /* avoid potential endless loop */
|
||||
break;
|
||||
SleepEx(0, FALSE);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue