httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgid.c
Date Wed, 02 May 2001 16:58:26 GMT
trawick     01/05/02 09:58:25

  Modified:    .        CHANGES
               modules/generators mod_cgid.c
  Log:
  Prevent a hang when a cgi handled by mod_cgid tries to read a
  request body from its stdin but no reqest body is being written to
  the cgi.
  
  Revision  Changes    Path
  1.192     +5 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.191
  retrieving revision 1.192
  diff -u -r1.191 -r1.192
  --- CHANGES	2001/05/02 13:37:21	1.191
  +++ CHANGES	2001/05/02 16:58:15	1.192
  @@ -1,4 +1,9 @@
   Changes with Apache 2.0.18-dev
  +
  +  *) Prevent a hang when a cgi handled by mod_cgid tries to read a
  +     request body from its stdin but no reqest body is being written to 
  +     the cgi.  [Jeff Trawick]
  +
     *) mod_log_config: %c connection status incorrectly logged
        as "-" (non-keepalive) when MaxKeepAliveRequests is set to 0.
        [Bill Stoddard]
  
  
  
  1.84      +5 -1      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- mod_cgid.c	2001/04/03 19:12:14	1.83
  +++ mod_cgid.c	2001/05/02 16:58:21	1.84
  @@ -962,8 +962,12 @@
                   break; 
               } 
           } 
  -        shutdown(sd, 1); /* done writing; force EOF on child's stdin */
       } 
  +    /* we're done writing, or maybe we didn't write at all;
  +     * force EOF on child's stdin so that the cgi detects end (or
  +     * absence) of data
  +     */
  +    shutdown(sd, 1);
   
       /* Handle script return... */ 
       if (!nph) { 
  
  
  

Mime
View raw message