httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1515050 - in /httpd/httpd/trunk: CHANGES support/fcgistarter.c
Date Sun, 18 Aug 2013 00:35:33 GMT
Author: trawick
Date: Sun Aug 18 00:35:33 2013
New Revision: 1515050

URL: http://svn.apache.org/r1515050
Log:
fcgistarter: Specify SO_REUSEADDR to allow starting a server
with old connections in TIME_WAIT.

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/support/fcgistarter.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1515050&r1=1515049&r2=1515050&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Sun Aug 18 00:35:33 2013
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) fcgistarter: Specify SO_REUSEADDR to allow starting a server
+     with old connections in TIME_WAIT.  [Jeff Trawick]
+
   *) mod_auth_basic: Add AuthBasicUseDigestAlgorithm directive to
      allow migration of passwords from digest to basic authentication.
      [Chris Darroch]

Modified: httpd/httpd/trunk/support/fcgistarter.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/fcgistarter.c?rev=1515050&r1=1515049&r2=1515050&view=diff
==============================================================================
--- httpd/httpd/trunk/support/fcgistarter.c (original)
+++ httpd/httpd/trunk/support/fcgistarter.c Sun Aug 18 00:35:33 2013
@@ -133,6 +133,11 @@ int main(int argc, const char * const ar
         exit_error(rv, "apr_socket_create");
     }
 
+    rv = apr_socket_opt_set(skt, APR_SO_REUSEADDR, 1);
+    if (rv) {
+        exit_error(rv, "apr_socket_opt_set(APR_SO_REUSEADDR)");
+    }
+
     rv = apr_socket_bind(skt, skaddr);
     if (rv) {
         exit_error(rv, "apr_socket_bind");



Mime
View raw message