aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-24 14:39:36 +0100
committerKim Alvefur <zash@zash.se>2018-02-24 14:39:36 +0100
commite2a3b634fb496255df147e6da75b78075a6465d4 (patch)
treef8b619db7d59e4efe8cfee0373a63e99d2373976
parent3356d3073c8e195a4e73a3d4611ade434b461dc4 (diff)
downloadprosody-e2a3b634fb496255df147e6da75b78075a6465d4.tar.gz
prosody-e2a3b634fb496255df147e6da75b78075a6465d4.zip
net.server_epoll: Spelling writeable -> writable
-rw-r--r--net/server_epoll.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 93a7a1a9..47d19350 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -333,7 +333,7 @@ function interface:onreadable()
end
-- Called when socket is writable
-function interface:onwriteable()
+function interface:onwritable()
local buffer = self.writebuffer;
local data = t_concat(buffer);
local ok, err, partial = self.conn:send(data);
@@ -403,7 +403,7 @@ function interface:destroy()
self:setwritetimeout(false);
self:setreadtimeout(false);
self.onreadable = noop;
- self.onwriteable = noop;
+ self.onwritable = noop;
self.destroy = noop;
self.close = noop;
self.on = noop;
@@ -434,7 +434,7 @@ function interface:starttls(ctx)
conn:settimeout(0);
self.conn = conn;
self.ondrain = nil;
- self.onwriteable = interface.tlshandskake;
+ self.onwritable = interface.tlshandskake;
self.onreadable = interface.tlshandskake;
self:setflags(true, true);
self:setwritetimeout(cfg.handshake_timeout);
@@ -447,7 +447,7 @@ function interface:tlshandskake()
local ok, err = self.conn:dohandshake();
if ok then
log("debug", "TLS handshake on %s complete", tostring(self));
- self.onwriteable = nil;
+ self.onwritable = nil;
self.onreadable = nil;
self._tls = true;
self:on("status", "ssl-handshake-complete");
@@ -635,7 +635,7 @@ local function loop(once)
conn:onreadable();
end
if w then
- conn:onwriteable();
+ conn:onwritable();
end
else
log("debug", "Removing unknown fd %d", fd);
@@ -679,7 +679,7 @@ return {
getfd = function () return fd; end;
callback = callback;
onreadable = onevent;
- onwriteable = onevent;
+ onwritable = onevent;
close = function (self)
self:setflags(false, false);
fds[fd] = nil;