From e987b9c76eb971aeb71c24775f5e007c9848d8ef Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Thu, 9 Jan 2003 09:24:10 +0000 Subject: [PATCH] Try to set REUSEADDR even on BS2000 (and ignore errors in older 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/http_main.c b/src/main/http_main.c index 0205aa0682a..967ce941619 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -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) { -- 2.47.3