]> granicus.if.org Git - apache/commitdiff
fcgistarter: Specify SO_REUSEADDR to allow starting a server
authorJeff Trawick <trawick@apache.org>
Sun, 18 Aug 2013 00:35:33 +0000 (00:35 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 18 Aug 2013 00:35:33 +0000 (00:35 +0000)
with old connections in TIME_WAIT.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1515050 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/fcgistarter.c

diff --git a/CHANGES b/CHANGES
index 43a9fd02620f0343ac4d7f8906c4e2de6cd6e347..346aa069632216860212d3e8a9a28458e7e7d0e6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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]
index 2e2c3e5662f775ff8d59ee16a620102717c0fe50..9cfda51a09f037956d3edeefc36ae0afbca2dc01 100644 (file)
@@ -133,6 +133,11 @@ int main(int argc, const char * const argv[])
         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");