diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-15 14:20:01 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-15 14:20:01 +0200 |
commit | a39eb7be8fa8d8242ae2a7ef70c858b836d336cf (patch) | |
tree | df77fdce933770eb553bd077aef0d564caf3ac0f | |
parent | 128f7d4593499a19ee333ae5b20f4d5fbb630725 (diff) | |
download | prosody-a39eb7be8fa8d8242ae2a7ef70c858b836d336cf.tar.gz prosody-a39eb7be8fa8d8242ae2a7ef70c858b836d336cf.zip |
net.server_epoll: Fix write signal handling in watchfd API
The main loop calls :onwritable but here it was spelled :onwriteable
-rw-r--r-- | net/server_epoll.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 2bc7c658..c8e24d6b 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -602,11 +602,11 @@ local function addclient(addr, port, listeners, read_size, tls_ctx) return client, conn; end -local function watchfd(fd, onreadable, onwriteable) +local function watchfd(fd, onreadable, onwritable) local conn = setmetatable({ conn = fd; onreadable = onreadable; - onwriteable = onwriteable; + onwritable = onwritable; close = function (self) self:del(); end @@ -617,7 +617,7 @@ local function watchfd(fd, onreadable, onwriteable) end; -- Otherwise it'll need to be something LuaSocket-compatible end - conn:add(onreadable, onwriteable); + conn:add(onreadable, onwritable); return conn; end; |