httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@hyperreal.com>
Subject cvs commit: apache/src http_protocol.c
Date Tue, 02 Apr 1996 14:10:29 GMT
ben         96/04/02 06:10:28

  Modified:    src       http_protocol.c
  Log:
  Don't wait for a timeout to kill us, die immediately.
  
  Revision  Changes    Path
  1.16      +3 -2      apache/src/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_protocol.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -C3 -r1.15 -r1.16
  *** http_protocol.c	1996/04/02 12:02:16	1.15
  --- http_protocol.c	1996/04/02 14:10:25	1.16
  ***************
  *** 720,727 ****
    	
            while(n && !r->connection->aborted) {
                w=bwrite(c->client, &buf[o], n);
  ! 	    if (w > 0)
  ! 	        reset_timeout(r); /* reset timeout after successfule write */
                n-=w;
                o+=w;
            }
  --- 720,728 ----
    	
            while(n && !r->connection->aborted) {
                w=bwrite(c->client, &buf[o], n);
  ! 	    if(w <= 0)
  ! 		break;
  ! 	    reset_timeout(r); /* reset timeout after successfule write */
                n-=w;
                o+=w;
            }
  
  
  

Mime
View raw message