fielding 97/05/28 22:21:16
Modified: src buff.c Log: saferead must stop reading if the buffer has been marked in error (i.e., a timeout has occurred). Necessary for proxy timeouts. Submitted by: Petr Lampa Reviewed by: Roy Fielding Revision Changes Path 1.26 +1 -1 apache/src/buff.c Index: buff.c =================================================================== RCS file: /export/home/cvs/apache/src/buff.c,v retrieving revision 1.25 retrieving revision 1.26 diff -C3 -r1.25 -r1.26 *** buff.c 1997/04/27 06:23:21 1.25 --- buff.c 1997/05/29 05:21:15 1.26 *************** *** 325,331 **** } do { rv = read( fb->fd_in, buf, nbyte ); ! } while ( rv == -1 && errno == EINTR ); return( rv ); } --- 325,331 ---- } do { rv = read( fb->fd_in, buf, nbyte ); ! } while (rv == -1 && errno == EINTR && !(fb->flags & B_EOUT)); return( rv ); }