summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2013-06-25 11:45:19 +0000
committerJeff Trawick <trawick@apache.org>2013-06-25 11:45:19 +0000
commitfdafc9e397f33b723736c08c74cad6c78bcd8085 (patch)
tree3ed6eaef73a9a34744efc83277742a8ed977bb6b /configure.in
parent08a72883adf0163435c7266b7f9d264ea2aee2a5 (diff)
downloadhttpd-fdafc9e397f33b723736c08c74cad6c78bcd8085.tar.gz
core: Support the SINGLE_LISTEN_UNSERIALIZED_ACCEPT optimization
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
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 6e86cfee0f..5e71f9a29d 100644
--- a/configure.in
+++ b/configure.in
@@ -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
;;