aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-30 19:40:39 +0100
committerKim Alvefur <zash@zash.se>2018-11-30 19:40:39 +0100
commit6176e9ff1b48d42310eed5730aa82d8bc3968d22 (patch)
treed3b96170143c39a2883f583a5bd21e036a94f13d
parent448257af39e57ddfd35b968c6ca18679ccd000a0 (diff)
downloadprosody-6176e9ff1b48d42310eed5730aa82d8bc3968d22.tar.gz
prosody-6176e9ff1b48d42310eed5730aa82d8bc3968d22.zip
server_epoll: Add comments describing config options
-rw-r--r--net/server_epoll.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 567d3154..ecb72a00 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -35,13 +35,28 @@ local _ENV = nil;
-- luacheck: std none
local default_config = { __index = {
+ -- If a connection is silent for this long, close it unless onreadtimeout says not to
read_timeout = 14 * 60;
+
+ -- How long to wait for a socket to become writable after queuing data to send
write_timeout = 60;
+
+ -- Some number possibly influencing how many pending connections can be accepted
tcp_backlog = 128;
+
+ -- If accepting a new incoming connection fails, wait this long before trying again
accept_retry_interval = 10;
+
+ -- If there is still more data to read from LuaSocktes buffer, wait this long and read again
read_retry_delay = 1e-06;
+
+ -- Size of chunks to read from sockets
read_size = 8192;
+
+ -- Timeout used during between steps in TLS handshakes
handshake_timeout = 60;
+
+ -- Maximum and minimum amount of time to sleep waiting for events (adjusted for pending timers)
max_wait = 86400;
min_wait = 1e-06;
}};