[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 191/264: sockfilt: fix broken pipe on Windows to be ready in sel
From: |
gnunet |
Subject: |
[gnurl] 191/264: sockfilt: fix broken pipe on Windows to be ready in select_ws |
Date: |
Thu, 30 Apr 2020 16:08:14 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 8a2038a3ad36b292c0f15b4a5070fc3d78e7dc45
Author: Marc Hoersken <address@hidden>
AuthorDate: Mon Apr 13 19:18:15 2020 +0200
sockfilt: fix broken pipe on Windows to be ready in select_ws
Closes #5228
---
tests/server/sockfilt.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 166b75b38..60ee07f64 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -544,14 +544,17 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID
lpParameter)
}
}
else {
- /* if the pipe has been closed, sleep and continue waiting */
+ /* if the pipe has NOT been closed, sleep and continue waiting */
length = GetLastError();
- logmsg("[select_ws_wait_thread] PeekNamedPipe error: %d", length);
- if(length == ERROR_BROKEN_PIPE) {
+ if(length != ERROR_BROKEN_PIPE) {
+ logmsg("[select_ws_wait_thread] PeekNamedPipe err: %d", length);
SleepEx(0, FALSE);
ReleaseMutex(mutex);
continue;
}
+ else {
+ logmsg("[select_ws_wait_thread] pipe closed, PIPE: %p", handle);
+ }
}
/* there is some data available, stop waiting */
logmsg("[select_ws_wait_thread] data available, PIPE: %p", handle);
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 239/264: RELEASE-NOTES: synced, (continued)
- [gnurl] 239/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 203/264: sockfilt: tidy variable naming and data structure in select_ws, gnunet, 2020/04/30
- [gnurl] 204/264: tests: run the sws server on "any port", gnunet, 2020/04/30
- [gnurl] 194/264: cmake: Avoid MSVC C4273 warnings in send/recv checks, gnunet, 2020/04/30
- [gnurl] 195/264: docs/MQTT: replace confusing 80 by 75, gnunet, 2020/04/30
- [gnurl] 193/264: KNOWN_BUGS: Add entry 'Blocking socket operations', gnunet, 2020/04/30
- [gnurl] 215/264: runtests: dummy init the ports variables to avoid warnings, gnunet, 2020/04/30
- [gnurl] 216/264: src: Remove C99 constructs to ensure C89 compliance, gnunet, 2020/04/30
- [gnurl] 252/264: smtp: set auth correctly, gnunet, 2020/04/30
- [gnurl] 250/264: libssh: avoid options override by configuration files, gnunet, 2020/04/30
- [gnurl] 191/264: sockfilt: fix broken pipe on Windows to be ready in select_ws,
gnunet <=
- [gnurl] 224/264: mqtt: improve the state machine, gnunet, 2020/04/30
- [gnurl] 219/264: add more alt-svc test coverage, gnunet, 2020/04/30
- [gnurl] 218/264: test1247: use http server to get the port number set, gnunet, 2020/04/30
- [gnurl] 246/264: tests: make runtests check that disabled tests exists, gnunet, 2020/04/30
- [gnurl] 200/264: mqttd: s/errno/SOCKERRNO, gnunet, 2020/04/30
- [gnurl] 201/264: appveyor: add Unicode winbuild jobs, gnunet, 2020/04/30
- [gnurl] 199/264: buildconf: use find -execdir instead, remove -print and the ares files, gnunet, 2020/04/30
- [gnurl] 197/264: copyright: bump the copyright year range, gnunet, 2020/04/30
- [gnurl] 202/264: libssh: Use new ECDSA key types to check known hosts, gnunet, 2020/04/30
- [gnurl] 198/264: buildconf: avoid using tempfile when removing files, gnunet, 2020/04/30