]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
core: Support the SINGLE_LISTEN_UNSERIALIZED_ACCEPT optimization
authorJeff Trawick <trawick@apache.org>
Tue, 25 Jun 2013 11:45:19 +0000 (11:45 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 25 Jun 2013 11:45:19 +0000 (11:45 +0000)
on Linux kernel versions 3.x and above.

PR: 55121
Submitted by: Bradley Heilbrun <apache heilbrun.org>
Reviewed by: trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1496429 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index 5bc8bcc54f8a657f2220efb48c1cbef4102d94e3..cba349ebace65a59c1ac00a0afc5621e7a048d97 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Support the SINGLE_LISTEN_UNSERIALIZED_ACCEPT optimization
+     on Linux kernel versions 3.x and above.  PR 55121.  [Bradley Heilbrun
+     <apache heilbrun.org>]
+
   *) core: merge AllowEncodedSlashes from the base configuration into
      virtual hosts. [Eric Covener]
 
index 6e86cfee0f3c933ee7ba558f03dba77eb106671b..5e71f9a29d5609e96afcf6607cf7777b030dfb46 100644 (file)
@@ -323,10 +323,11 @@ case $host in
       ;;
   *-linux-*)
       case `uname -r` in
-        2.[[2-9]]* ) 
-            APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
+        # Unserialized accept() was not recommended until Linux 2.2.
+        [[01]].* | 2.[[01]]* )
             ;;
         * )
+            APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
             ;;
       esac
       ;;