You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1996/04/02 02:53:57 UTC
Re: SIGPIPE and timeout on Solaris (solved apparently)
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?
*** 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;