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/server mpm_common.c
Date Thu, 07 Jun 2001 17:22:17 GMT
trawick     01/06/07 10:22:17

  Modified:    server   mpm_common.c
  Log:
  trace failures of a couple of crucial socket calls in ap_mpm_pod_signal()
  
  Revision  Changes    Path
  1.50      +12 -2     httpd-2.0/server/mpm_common.c
  
  Index: mpm_common.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm_common.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- mpm_common.c	2001/06/07 15:18:28	1.49
  +++ mpm_common.c	2001/06/07 17:22:12	1.50
  @@ -403,8 +403,18 @@
       }
       
       apr_sockaddr_info_get(&sa, "127.0.0.1", APR_UNSPEC, ap_listeners->bind_addr->port,
0, pod->p);
  -    apr_socket_create(&sock, sa->family, SOCK_STREAM, pod->p);
  -    apr_connect(sock, sa);    
  +    rv = apr_socket_create(&sock, sa->family, SOCK_STREAM, pod->p);
  +    if (rv != APR_SUCCESS) {
  +        ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf,
  +                     "get socket to connect to listener");
  +        return rv;
  +    }
  +    rv = apr_connect(sock, sa);    
  +    if (rv != APR_SUCCESS) {
  +        ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf,
  +                     "connect to listener");
  +        return rv;
  +    }
       apr_socket_close(sock);
   
       return APR_SUCCESS;
  
  
  

Mime
View raw message