]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Try to set REUSEADDR even on BS2000 (and ignore errors in older
authorMartin Kraemer <martin@apache.org>
Thu, 9 Jan 2003 09:24:10 +0000 (09:24 +0000)
committerMartin Kraemer <martin@apache.org>
Thu, 9 Jan 2003 09:24:10 +0000 (09:24 +0000)
versions of the TCP stack)

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

src/main/http_main.c

index 0205aa0682ab99891fe33ddebc1923c56e3ec33e..967ce941619ad8f354f73249c5758d6e30270d91 100644 (file)
@@ -3634,8 +3634,8 @@ static int make_sock(pool *p, const struct sockaddr_in *server)
 #endif /* TPF */
 #endif
 
-#ifndef _OSD_POSIX
     if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *) &one, sizeof(int)) < 0) {
+#ifndef _OSD_POSIX
        ap_log_error(APLOG_MARK, APLOG_CRIT, server_conf,
                    "make_sock: for %s, setsockopt: (SO_REUSEADDR)", addr);
 #ifdef BEOS
@@ -3645,8 +3645,8 @@ static int make_sock(pool *p, const struct sockaddr_in *server)
 #endif
        ap_unblock_alarms();
        exit(1);
-    }
 #endif /*_OSD_POSIX*/
+    }
     one = 1;
 #if defined(SO_KEEPALIVE) && !defined(MPE)
     if (setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, (char *) &one, sizeof(int)) < 0) {