aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-04-27 22:46:01 +0200
committerKim Alvefur <zash@zash.se>2013-04-27 22:46:01 +0200
commita7340fef1ce2d91665ba93f728c66f7183002a1f (patch)
treee88168af92a11e7b30a5179f57ac7f3935ab2be8 /net/server_event.lua
parentd9bff06d21d62879c54ee40dbd654b4dbc89735f (diff)
downloadprosody-a7340fef1ce2d91665ba93f728c66f7183002a1f.tar.gz
prosody-a7340fef1ce2d91665ba93f728c66f7183002a1f.zip
net.server*: Allow the TCP backlog parameter to be set in the config
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index b34845d6..5eae95a9 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -23,6 +23,7 @@ local cfg = {
HANDSHAKE_TIMEOUT = 60, -- timeout in seconds per handshake attempt
MAX_READ_LENGTH = 1024 * 1024 * 1024 * 1024, -- max bytes allowed to read from sockets
MAX_SEND_LENGTH = 1024 * 1024 * 1024 * 1024, -- max bytes size of write buffer (for writing on sockets)
+ ACCEPT_QUEUE = 128, -- might influence the length of the pending sockets queue
ACCEPT_DELAY = 10, -- seconds to wait until the next attempt of a full server to accept
READ_TIMEOUT = 60 * 60 * 6, -- timeout in seconds for read data from socket
WRITE_TIMEOUT = 180, -- timeout in seconds for write data on socket