]> granicus.if.org Git - apache/commitdiff
forgot the actual change
authorIan Holsman <ianh@apache.org>
Tue, 19 Mar 2002 19:01:50 +0000 (19:01 +0000)
committerIan Holsman <ianh@apache.org>
Tue, 19 Mar 2002 19:01:50 +0000 (19:01 +0000)
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

index 0941f11cd24188538a5037cfc76e0e916142304a..840f592da198b261263a8d1d50f7372ffa4bdfe8 100644 (file)
@@ -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;