httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgid.c
Date Tue, 12 Dec 2000 20:34:22 GMT
trawick     00/12/12 12:34:21

  Modified:    modules/generators mod_cgid.c
  Log:
  Change a couple of socket call failures from 404 errors to
  500 errors.
  
  Revision  Changes    Path
  1.52      +2 -2      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.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- mod_cgid.c	2000/12/12 12:01:38	1.51
  +++ mod_cgid.c	2000/12/12 20:34:20	1.52
  @@ -808,7 +808,7 @@
       env = ap_create_environment(r->pool, r->subprocess_env); 
   
       if ((sd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
  -            return log_scripterror(r, conf, HTTP_NOT_FOUND, 0, 
  +            return log_scripterror(r, conf, HTTP_INTERNAL_SERVER_ERROR, 0, 
                                      "unable to create socket to cgi daemon");
       } 
       memset(&unix_addr, 0, sizeof(unix_addr));
  @@ -816,7 +816,7 @@
       strcpy(unix_addr.sun_path, conf->sockname);
   
       if (connect(sd, (struct sockaddr *)&unix_addr, sizeof(unix_addr)) < 0) {
  -            return log_scripterror(r, conf, HTTP_NOT_FOUND, 0, 
  +            return log_scripterror(r, conf, HTTP_INTERNAL_SERVER_ERROR, 0, 
                                      "unable to connect to cgi daemon");
       } 
   
  
  
  

Mime
View raw message