]> granicus.if.org Git - apache/commitdiff
fcgistarter: Specify SO_REUSEADDR to allow starting a server
authorJeff Trawick <trawick@apache.org>
Mon, 19 Aug 2013 11:37:24 +0000 (11:37 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 19 Aug 2013 11:37:24 +0000 (11:37 +0000)
with old connections in TIME_WAIT.

Submitted by: trawick
Reviewed by: covener, sf

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1515367 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
support/fcgistarter.c

diff --git a/CHANGES b/CHANGES
index f2a42c46b454deb6b19b13e0c4930b4b2c720e7a..b02ee0b743d4cb5ae9b47237021b30288723bfef 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.7
 
+  *) fcgistarter: Specify SO_REUSEADDR to allow starting a server
+     with old connections in TIME_WAIT.  [Jeff Trawick]
+
   *) core: Add open_htaccess hook which, in conjunction with dirwalk_stat
      and post_perdir_config (introduced in 2.4.5), allows mpm-itk to be 
      used without patches to httpd core. [Stefan Fritsch]
diff --git a/STATUS b/STATUS
index d3a412d681af1e4e12bbb2a92cd97757895f2aaf..10d893d03a0a45b9600684fec1ddf0cdc999b9f4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -127,12 +127,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
     2.4.x patch: trunk patch works
     +1: jim, druggeri, sf
 
-  * fcgistarter: Specify SO_REUSEADDR to allow starting a server with old
-    connections in TIME_WAIT.
-    trunk: http://svn.apache.org/r1515050
-    2.4.x patch: trunk patch works
-    +1: trawick, covener, sf
-
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
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");