aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-22 15:36:03 +0200
committerKim Alvefur <zash@zash.se>2020-05-22 15:36:03 +0200
commit9783208ba5af9749a111cd70761afeed383d751a (patch)
treef6030921d6493001408099444c80fbe03082b41a /net/server_epoll.lua
parenta166ab719cbdcb89e7bdfca6f0c89239c7942f57 (diff)
downloadprosody-9783208ba5af9749a111cd70761afeed383d751a.tar.gz
prosody-9783208ba5af9749a111cd70761afeed383d751a.zip
net.server_epoll: Fix typo in internal method name
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 632958ba..82f7ab59 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -519,14 +519,14 @@ function interface:starttls(tls_ctx)
if self.ondrain == interface.starttls then
self.ondrain = nil;
end
- self.onwritable = interface.tlshandskake;
- self.onreadable = interface.tlshandskake;
+ self.onwritable = interface.tlshandshake;
+ self.onreadable = interface.tlshandshake;
self:set(true, true);
self:debug("Prepared to start TLS");
end
end
-function interface:tlshandskake()
+function interface:tlshandshake()
self:setwritetimeout(false);
self:setreadtimeout(false);
if not self._tls then
@@ -555,8 +555,8 @@ function interface:tlshandskake()
end
self:on("starttls");
self.ondrain = nil;
- self.onwritable = interface.tlshandskake;
- self.onreadable = interface.tlshandskake;
+ self.onwritable = interface.tlshandshake;
+ self.onreadable = interface.tlshandshake;
return self:init();
end
self:noise("Continuing TLS handshake");