Received: by taz.hyperreal.com (8.6.12/8.6.5) id AAA04781; Tue, 2 Apr 1996 00:05:01 -0800 Received: from dicsmss1.jrc.it by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id AAA04753; Tue, 2 Apr 1996 00:04:46 -0800 Received: from jrc.it (elect6.jrc.it) by dicsmss1.jrc.it (4.1/EB-950131-C) id AA17675; Tue, 2 Apr 96 10:08:25 +0200 Received: by jrc.it (5.x/EB-950213-L) id AA05884; Tue, 2 Apr 1996 10:04:00 +0200 Date: Tue, 2 Apr 1996 10:04:00 +0200 From: "Dirk.vanGulik" Message-Id: <9604020804.AA05884@ jrc.it> To: new-httpd@hyperreal.com Subject: Re: SIGPIPE and timeout on Solaris (solved apparently) X-Sun-Charset: US-ASCII Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com Status: O X-Status: > 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; > > >