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
commit6591bd9db584bf6c5b8920c4438cd087bbfefce3 (patch)
treec21d6c75ffe299d6acb075a8f3ab7624425dbd0b /net/server_select.lua
parent8843844d0a481c43a63268f7f942a88037e4c422 (diff)
downloadprosody-6591bd9db584bf6c5b8920c4438cd087bbfefce3.tar.gz
prosody-6591bd9db584bf6c5b8920c4438cd087bbfefce3.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" } )