httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James H. Cloos Jr." <cl...@jhcloos.com>
Subject Re: More on child-process just running (chewing CPU)
Date Tue, 02 Apr 1996 10:14:00 GMT
The mod I suggested to send_fd() is, so far, keeping any child from
getting into a loop.

Here is a propper C3 patch:

------------------------------------------------------------

# diff -C3 http_protocol.c~ http_protocol.c 
*** http_protocol.c~    Tue Apr  2 04:09:29 1996
--- http_protocol.c     Tue Apr  2 02:10:35 1996
***************
*** 720,726 ****
  
          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;
--- 720,726 ----
  
          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;

------------------------------------------------------------

I'm about 44 hours behind the CVS tree at the moment, but I haven't
seen any commit notices that would invalidate this....

P.S.  Anyone willing to commit that patch I posted for mod_cookies?
      Anyone?

-JimC
-- 
James H. Cloos, Jr.	<URL:http://www.jhcloos.com/~cloos/>
cloos@jhcloos.com	Work: cloos@io.com
LPF,Usenix,SAGE,ISOC


Mime
View raw message