From: Jeff Trawick Date: Sun, 18 Aug 2013 00:35:33 +0000 (+0000) Subject: fcgistarter: Specify SO_REUSEADDR to allow starting a server X-Git-Tag: 2.5.0-alpha~5180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c93046fcfe7ea74ac1198c713199ade6194f0c1;p=apache fcgistarter: Specify SO_REUSEADDR to allow starting a server with old connections in TIME_WAIT. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1515050 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 43a9fd0262..346aa06963 100644 --- 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] diff --git a/support/fcgistarter.c b/support/fcgistarter.c index 2e2c3e5662..9cfda51a09 100644 --- a/support/fcgistarter.c +++ b/support/fcgistarter.c @@ -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");