1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00

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.
This commit is contained in:
david
2010-03-02 19:24:32 +00:00
parent 5e8f88194d
commit a39c302fcc

View File

@@ -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]