Software /
code /
prosody
Diff
net/server_event.lua @ 5531:483f795f6f99
net.server*: Allow the TCP backlog parameter to be set in the config
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 27 Apr 2013 22:46:01 +0200 |
parent | 5339:b5cae12411af |
child | 5625:e67891ad18d6 |
child | 5755:9a9c2c254412 |
line wrap: on
line diff
--- a/net/server_event.lua Sat Apr 27 19:44:37 2013 +0200 +++ b/net/server_event.lua Sat Apr 27 22:46:01 2013 +0200 @@ -23,6 +23,7 @@ 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