Diff

net/server_select.lua @ 5289:ec50ad93e280

net.server_select: Remove useless duplicated settimeout() call
author Kim Alvefur <zash@zash.se>
date Mon, 07 Jan 2013 02:21:03 +0100
parent 5288:2777f34adbd3
child 5330:0a0ca2eb991b
line wrap: on
line diff
--- a/net/server_select.lua	Mon Jan 07 02:20:43 2013 +0100
+++ b/net/server_select.lua	Mon Jan 07 02:21:03 2013 +0100
@@ -238,7 +238,6 @@
 		local client, err = accept( socket )	-- try to accept
 		if client then
 			local ip, clientport = client:getpeername( )
-			client:settimeout( 0 )
 			local handler, client, err = wrapconnection( handler, listeners, client, ip, serverport, clientport, pattern, sslctx ) -- wrap new client socket
 			if err then -- error while wrapping ssl socket
 				return false