Software /
code /
prosody
Changeset
9319:7c954c75b6ac
net.server_epoll: Fix write signal handling in watchfd API
The main loop calls :onwritable but here it was spelled :onwriteable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Sep 2018 14:20:01 +0200 |
parents | 9318:3429006518bf |
children | 9320:8cc498cb0df7 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Sat Sep 15 01:17:53 2018 +0200 +++ b/net/server_epoll.lua Sat Sep 15 14:20:01 2018 +0200 @@ -602,11 +602,11 @@ 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 @@ end; -- Otherwise it'll need to be something LuaSocket-compatible end - conn:add(onreadable, onwriteable); + conn:add(onreadable, onwritable); return conn; end;