aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-10 20:55:07 +0200
committerKim Alvefur <zash@zash.se>2016-08-10 20:55:07 +0200
commit3253630d186cd5e66c6ee24834adad6064260e15 (patch)
tree032ba021075765d026aba61c8dbe4ef2863f7800 /net/server_epoll.lua
parent07e243fa97c426e4dee03dbdcb063d467f9bf012 (diff)
downloadprosody-3253630d186cd5e66c6ee24834adad6064260e15.tar.gz
prosody-3253630d186cd5e66c6ee24834adad6064260e15.zip
net.server_epoll: Rename arguments and varibles for consistensy
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 9808b8ea..57da4287 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -447,21 +447,21 @@ local function addserver(addr, port, listeners, pattern, tls)
end
-- COMPAT
-local function wrapclient(client, addr, port, listeners, mode, tls)
- local conn = setmetatable({
- conn = client;
+local function wrapclient(conn, addr, port, listeners, pattern, tls)
+ local client = setmetatable({
+ conn = conn;
created = gettime();
listeners = listeners;
- _pattern = mode;
+ _pattern = pattern;
writebuffer = {};
tls = tls;
onreadable = interface.onconnect;
onwriteable = interface.onconnect;
peer = { addr, port };
}, interface_mt);
- fds[conn:getfd()] = conn;
- conn:setflags(true, true);
- return conn;
+ fds[client:getfd()] = client;
+ client:setflags(false, true);
+ return client;
end
local function link(from, to)