Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5288:2777f34adbd3 | 5289:ec50ad93e280 |
---|---|
236 return false | 236 return false |
237 end | 237 end |
238 local client, err = accept( socket ) -- try to accept | 238 local client, err = accept( socket ) -- try to accept |
239 if client then | 239 if client then |
240 local ip, clientport = client:getpeername( ) | 240 local ip, clientport = client:getpeername( ) |
241 client:settimeout( 0 ) | |
242 local handler, client, err = wrapconnection( handler, listeners, client, ip, serverport, clientport, pattern, sslctx ) -- wrap new client socket | 241 local handler, client, err = wrapconnection( handler, listeners, client, ip, serverport, clientport, pattern, sslctx ) -- wrap new client socket |
243 if err then -- error while wrapping ssl socket | 242 if err then -- error while wrapping ssl socket |
244 return false | 243 return false |
245 end | 244 end |
246 connections = connections + 1 | 245 connections = connections + 1 |