socket descriptor on Windows always fails. Should be calling
recv() instead of read() on Windows. Thanks to Bill Rowe (and bounds checker :-)
for pointing this out.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89259
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.21
+ *) Fix problem with lingering_close() on Windows. Issuing read() on the
+ socket descriptor on Windows always fails. Should be calling
+ recv() instead of read() on Windows.
+ [Bill Stoddard, Bill Rowe]
*) Added an abnormal exit clean up routine to make sure that ApacheC NLM
is always unloaded cleanly. This fixes the "Ouch! out of memory"
select_rv = ap_select(lsd + 1, &lfds, NULL, NULL, &tv);
} while ((select_rv > 0) &&
+#ifdef WIN32
+ (recv(lsd, dummybuf, sizeof dummybuf, 0) > 0));
+#else
(read(lsd, dummybuf, sizeof dummybuf) > 0));
+#endif
/* Should now have seen final ack. Safe to finally kill socket */