manoj 99/02/04 23:55:25
Modified: pthreads/src/main http_protocol.c Log: Fix (I think) a bug where pipes could be closed even if there is still data to send, so only part of a CGI's output would sometimes be sent. Revision Changes Path 1.3 +2 -2 apache-apr/pthreads/src/main/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /home/cvs/apache-apr/pthreads/src/main/http_protocol.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- http_protocol.c 1999/02/04 06:52:39 1.2 +++ http_protocol.c 1999/02/05 07:55:24 1.3 @@ -1876,7 +1876,7 @@ #endif if (ap_is_aborted(r->connection)) break; - if (n < 0 /* && errno != EAGAIN ZZZ rethink for threaded impl */) + if (n < 0 && errno != EAGAIN /* ZZZ rethink for threaded impl */) break; /* we need to block, so flush the output first */ ap_bflush(r->connection->client); @@ -1909,7 +1909,7 @@ else if (w < 0) { if (ap_is_aborted(r->connection)) break; -#if 0 /*rethink for threaded impl */ +#if 1 /*rethink for threaded impl */ else if (errno == EAGAIN) continue; #endif