From 41cc7ed71679ba3b5c371c8b78da492faf210498 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 26 Jun 2017 12:14:38 +0000 Subject: [PATCH] Document the listen-backlog directive Sponsored by: Robert Klemme --- doc/source/p-config.sgml | 83 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 2 deletions(-) diff --git a/doc/source/p-config.sgml b/doc/source/p-config.sgml index 09bf5c88..978f93e7 100644 --- a/doc/source/p-config.sgml +++ b/doc/source/p-config.sgml @@ -3,7 +3,7 @@ Purpose : Used with other docs and files only. - $Id: p-config.sgml,v 2.125 2017/03/08 13:11:01 fabiankeil Exp $ + $Id: p-config.sgml,v 2.126 2017/05/29 10:02:37 fabiankeil Exp $ Copyright (C) 2001-2017 Privoxy Developers https://www.privoxy.org/ See LICENSE. @@ -97,7 +97,7 @@ Sample Configuration File for Privoxy &p-version; - $Id: p-config.sgml,v 2.125 2017/03/08 13:11:01 fabiankeil Exp $ + $Id: p-config.sgml,v 2.126 2017/05/29 10:02:37 fabiankeil Exp $ Copyright (C) 2001-2017 Privoxy Developers https://www.privoxy.org/ @@ -3176,6 +3176,85 @@ forward-socks4, forward-socks4a, forward-socks5 and forward-socks5t +listen-backlog + + + Specifies: + + + Connection queue length requested from the operating system. + + + + + Type of value: + + + Number. + + + + + Default value: + + 128 + + + + Effect if unset: + + + A connection queue length of 128 is requested from the operating system. + + + + + Notes: + + + Under high load incoming connection may queue up before Privoxy + gets around to serve them. The queue length is limitted by the + operating system. Once the queue is full, additional connections + are dropped before Privoxy can accept and serve them. + + + Increasing the queue length allows Privoxy to accept more + incomming connections that arrive roughly at the same time. + + + Note that Privoxy can only request a certain queue length, + whether or not the requested length is actually used depends + on the operating system which may use a different length instead. + + + On many operating systems a limit of -1 can be specified to + instruct the operating system to use the maximum queue length + allowed. Check the listen man page to see if your platform allows this. + + + On some platforms you can use "netstat -Lan -p tcp" to see the effective + queue length. + + + Effectively using a value above 128 usually requires changing + the system configuration as well. On FreeBSD-based system the + limit is controlled by the kern.ipc.soacceptqueue sysctl. + + + + + Examples: + + + listen-backlog 4096 + + + + +@@#listen-backlog -1]]> + + + handle-as-empty-doc-returns-ok -- 2.39.2