httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <Dirk.vanGu...@jrc.it>
Subject Re: SIGPIPE and timeout on Solaris (solved apparently)
Date Tue, 02 Apr 1996 08:04:00 GMT

> I made the following change to http_protocol.c and it seems to
> have fixed the problem. Could someone give me a one liner on
> how to commit this, and give me commit permissions?
> 

What is the bwrite() ? I cannot quite find it in the code/sol.

> 
> *** http_protocol.c.orig	Mon Apr  1 18:48:21 1996
> --- http_protocol.c	Mon Apr  1 18:43:42 1996
> ***************
> *** 718,726 ****
>           o=0;
>   	total_bytes_sent += n;
>   	
> !         while(n && !r->connection->aborted) {
>               w=bwrite(c->client, &buf[o], n);
> ! 	    if (w)
>   	        reset_timeout(r); /* reset timeout after successfule write */
>               n-=w;
>               o+=w;
> --- 718,726 ----
>           o=0;
>   	total_bytes_sent += n;
>   	
> !         while(errno != EPIPE && 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;
> 
> 
> 


Mime
View raw message