Software /
code /
prosody
Changeset
6543:01cd51777abb
net.server_select: Remove unused code
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Mon, 19 Jan 2015 14:09:13 -0500 |
parents | 6542:32c84e1f706d |
children | 6557:8aa967c81cbc |
files | net/server_select.lua |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_select.lua Mon Jan 19 14:05:37 2015 -0500 +++ b/net/server_select.lua Mon Jan 19 14:09:13 2015 -0500 @@ -31,7 +31,6 @@ --// lua libs //-- -local os = use "os" local table = use "table" local string = use "string" local coroutine = use "coroutine" @@ -287,7 +286,6 @@ local bufferqueuelen = 0 -- end of buffer array local toclose - local fatalerror local needtls local bufferlen = 0 @@ -499,7 +497,6 @@ 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 @@ 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 @@ end end ---// EXPERIMENTAL //-- - ----------------------------------// BEGIN //-- use "setmetatable" ( _socketlist, { __mode = "k" } )