httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <hart...@ooo.lanl.gov>
Subject Re: background CGI bug
Date Mon, 06 May 1996 16:40:02 GMT

...got the son of a b...


*** http_main.c.orig    Mon May  6 16:32:09 1996
--- http_main.c Mon May  6 16:32:28 1996
***************
*** 1138,1143 ****
--- 1138,1144 ----
                if (sd < 0) continue;
  
                clen=sizeof(sa_client);
+               close(csd);
                do csd=accept(sd, &sa_client, &clen);
                while (csd == -1 && errno == EINTR);
                if (csd != -1) break;



=-==-=-=-=-=-=-

 'csd' is being reused but the old file/socket is left open.


Please check the logic of this and then we can roll a 1.1b3 me thinks.

BTW, would this have other nasty side-effects.. consuming resources
that'd run out sooner or later?


rob

Mime
View raw message