aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2015-01-19 14:09:13 -0500
committerdaurnimator <quae@daurnimator.com>2015-01-19 14:09:13 -0500
commit6d2aec4a34dde4d20cc4a6f7e0a9a6db8057a630 (patch)
treec21d6c75ffe299d6acb075a8f3ab7624425dbd0b /net/server_select.lua
parent9ee1db0a5790c4d1522203edc1e84149146ddeb7 (diff)
downloadprosody-6d2aec4a34dde4d20cc4a6f7e0a9a6db8057a630.tar.gz
prosody-6d2aec4a34dde4d20cc4a6f7e0a9a6db8057a630.zip
net.server_select: Remove unused code
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index a0574f33..35dcb5a7 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -31,7 +31,6 @@ local tostring = use "tostring"
--// lua libs //--
-local os = use "os"
local table = use "table"
local string = use "string"
local coroutine = use "coroutine"
@@ -287,7 +286,6 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
local bufferqueuelen = 0 -- end of buffer array
local toclose
- local fatalerror
local needtls
local bufferlen = 0
@@ -499,7 +497,6 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
return dispatch( handler, buffer, err )
else -- connections was closed or fatal error
out_put( "server.lua: client ", tostring(ip), ":", tostring(clientport), " read error: ", tostring(err) )
- fatalerror = true
_ = handler and handler:force_close( err )
return false
end
@@ -539,7 +536,6 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
return true
else -- connection was closed during sending or fatal error
out_put( "server.lua: client ", tostring(ip), ":", tostring(clientport), " write error: ", tostring(err) )
- fatalerror = true
_ = handler and handler:force_close( err )
return false
end
@@ -1011,8 +1007,6 @@ local addclient = function( address, port, listeners, pattern, sslctx, typ )
end
end
---// EXPERIMENTAL //--
-
----------------------------------// BEGIN //--
use "setmetatable" ( _socketlist, { __mode = "k" } )