httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: SIGPIPE and timeout on Solaris (solved apparently)
Date Tue, 02 Apr 1996 13:09:06 GMT
Since I noticed that Jim commited an earlier change on this,
here is a patch against the current tree.


*** http_protocol.c.orig	Tue Apr  2 07:07:20 1996
--- http_protocol.c	Tue Apr  2 06:53:50 1996
***************
*** 718,730 ****
          o=0;
  	total_bytes_sent += n;
  	
!         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;
!         }
      }
      bflush(c->client);
      
--- 718,733 ----
          o=0;
  	total_bytes_sent += n;
  	
! 	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;
! 	    }
! 	    else
! 		break;
! 	}
      }
      bflush(c->client);
      




Mime
View raw message