aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-02-09 19:28:24 +0100
committerKim Alvefur <zash@zash.se>2019-02-09 19:28:24 +0100
commit73cfb71ca28e802960877cc3fc728093322764a9 (patch)
treea6b01f1e1ed20d575276079b3e5c24a16c01a7e5 /net
parente54f89b40c73eb716e8b643270f7b912bf21bcc8 (diff)
downloadprosody-73cfb71ca28e802960877cc3fc728093322764a9.tar.gz
prosody-73cfb71ca28e802960877cc3fc728093322764a9.zip
net.server_epoll: Rename handshake_timeout to ssl_handshake_timeout (fixes #1319)
This is to match server_event, see 430797a8fc81
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 9c4fa581..5c65d227 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -54,7 +54,7 @@ local default_config = { __index = {
read_size = 8192;
-- Timeout used during between steps in TLS handshakes
- handshake_timeout = 60;
+ ssl_handshake_timeout = 60;
-- Maximum and minimum amount of time to sleep waiting for events (adjusted for pending timers)
max_wait = 86400;
@@ -516,11 +516,11 @@ function interface:tlshandskake()
elseif err == "wantread" then
log("debug", "TLS handshake on %s to wait until readable", self);
self:set(true, false);
- self:setreadtimeout(cfg.handshake_timeout);
+ self:setreadtimeout(cfg.ssl_handshake_timeout);
elseif err == "wantwrite" then
log("debug", "TLS handshake on %s to wait until writable", self);
self:set(false, true);
- self:setwritetimeout(cfg.handshake_timeout);
+ self:setwritetimeout(cfg.ssl_handshake_timeout);
else
log("debug", "TLS handshake error on %s: %s", self, err);
self:on("disconnect", err);