# HG changeset patch # User Kim Alvefur # Date 1470855307 -7200 # Node ID 838212918f11ae4433a96d29cd0616be40728027 # Parent 8c2bc1b6d84aab993cb691fd60ac95d999d42713 net.server_epoll: Rename arguments and varibles for consistensy diff -r 8c2bc1b6d84a -r 838212918f11 net/server_epoll.lua --- a/net/server_epoll.lua Wed Aug 10 20:47:40 2016 +0200 +++ b/net/server_epoll.lua Wed Aug 10 20:55:07 2016 +0200 @@ -447,21 +447,21 @@ 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)