From 9e7b6b7aee4f2e318612c7180bc3a93337a3ed16 Mon Sep 17 00:00:00 2001 From: Ian Holsman Date: Tue, 19 Mar 2002 19:01:50 +0000 Subject: [PATCH] forgot the actual change PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94020 13f79535-47bb-0310-9956-ffa450edef68 --- server/connection.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/server/connection.c b/server/connection.c index 0941f11cd2..840f592da1 100644 --- a/server/connection.c +++ b/server/connection.c @@ -108,28 +108,6 @@ AP_IMPLEMENT_HOOK_RUN_ALL(int,pre_connection,(conn_rec *c, void *csd),(c, csd),O #define MAX_SECS_TO_LINGER 30 #endif -#ifdef USE_SO_LINGER -#define NO_LINGCLOSE /* The two lingering options are exclusive */ - -static void sock_enable_linger(int s) -{ - struct linger li; - - li.l_onoff = 1; - li.l_linger = MAX_SECS_TO_LINGER; - - if (setsockopt(s, SOL_SOCKET, SO_LINGER, - (char *)&li, sizeof(struct linger)) < 0) { - ap_log_error(APLOG_MARK, APLOG_WARNING, errno, server_conf, - "setsockopt: (SO_LINGER)"); - /* not a fatal error */ - } -} - -#else -#define sock_enable_linger(s) /* NOOP */ -#endif /* USE_SO_LINGER */ - AP_CORE_DECLARE(void) ap_flush_conn(conn_rec *c) { apr_bucket_brigade *bb; -- 2.40.0