From a39c302fcc4612bc43f489388c1e67f6a299caa3 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 2 Mar 2010 19:24:32 +0000 Subject: [PATCH] Re-block the socket before sending in subprocess_thread_func. The WSAEventSelect call we make to find out when the socket is ready for reading, also makes it non-blocking for the purpose of writing. A fast-writing process could cause a WSAEWOULDBLOCK error. This was reported by David Millis. --- CHANGELOG | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 01c671a82..9f1ed033d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,12 @@ [NOT YET RELEASED] +o [Ncat] Fixed an error that could make programs run with --exec exit + prematurely on Windows. The problem was related to a program writing + too quickly into a non-blocking socket. A symptom was the message: + NCAT DEBUG: Subprocess ended with exit code 259. + This was reported by David Millis. [David] + o [Ncat] Fixed a bug that prevented detecting EOF from stdin on Windows. This was reported by Adrian Crenshaw and Andy Zwirko. [David]