summaryrefslogtreecommitdiff
path: root/tests/server/sockfilt.c
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-03-11 14:19:59 +0100
committerMarc Hoersken <info@marc-hoersken.de>2020-03-26 16:27:50 +0100
commit6d45588ba396ebe663ccd0ba24e3969ad897d0b8 (patch)
treeffec59f42975dd18d835bd491179c52c0e343300 /tests/server/sockfilt.c
parent361d4f3fdcd613a78213f38040985fd70022055e (diff)
downloadcurl-6d45588ba396ebe663ccd0ba24e3969ad897d0b8.tar.gz
sockfilt: add logmsg output to select_ws_wait_thread on Windows
Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #5086
Diffstat (limited to 'tests/server/sockfilt.c')
-rw-r--r--tests/server/sockfilt.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 569be6f6c..5403d7c42 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -589,6 +589,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
}
}
/* there is some data available, stop waiting */
+ logmsg("[select_ws_wait_thread] data available on DISK: %p", handle);
break;
}
break;
@@ -618,6 +619,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
}
}
/* there is some data available, stop waiting */
+ logmsg("[select_ws_wait_thread] data available on CHAR: %p", handle);
break;
}
break;
@@ -640,15 +642,21 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
SleepEx(0, FALSE);
continue;
}
+ else {
+ logmsg("[select_ws_wait_thread] PeekNamedPipe len: %d", length);
+ }
}
else {
/* 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);
continue;
}
}
/* there is some data available, stop waiting */
+ logmsg("[select_ws_wait_thread] data available on PIPE: %p", handle);
break;
}
break;
@@ -656,6 +664,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
default:
/* The handle has an unknown type, try to wait on it */
WaitForMultipleObjectsEx(2, handles, FALSE, INFINITE, FALSE);
+ logmsg("[select_ws_wait_thread] data available on HANDLE: %p", handle);
break;
}