Software /
code /
prosody
Diff
net/server_event.lua @ 10547:c77471c180ea
net.server_event: Silence luacheck warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 21:52:28 +0100 |
parent | 10407:bd8fbee04a2f |
child | 11068:988ddd57e851 |
line wrap: on
line diff
--- a/net/server_event.lua Mon Dec 23 21:51:52 2019 +0100 +++ b/net/server_event.lua Mon Dec 23 21:52:28 2019 +0100 @@ -692,6 +692,7 @@ end end --vdebug("max connection check ok, accepting...") + -- luacheck: ignore 231/err local client, err = server:accept() -- try to accept; TODO: check err while client do if interface._connections >= cfg.MAX_CONNECTIONS then @@ -780,6 +781,7 @@ client:settimeout( 0 ) -- set nonblocking local res, err = client:setpeername( addr, serverport ) -- connect if res or ( err == "timeout" ) then + -- luacheck: ignore 211/port local ip, port = client:getsockname( ) local interface = wrapclient( client, ip, serverport, listener, pattern, sslctx, extra ) debug( "new connection id:", interface.id )