aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-07-14 13:41:02 +0200
committerKim Alvefur <zash@zash.se>2016-07-14 13:41:02 +0200
commitccadcc9b4710fcf04c51d01cb40611efd5f7b835 (patch)
tree7f1c0c36f5c9dadc79cbec11d668ba0bdef0d36f /net/server_select.lua
parent3616de36510d613e3eb2e75e730f5066bfa41741 (diff)
parent81dba787f4875f51e6d376231373600401c99411 (diff)
downloadprosody-ccadcc9b4710fcf04c51d01cb40611efd5f7b835.tar.gz
prosody-ccadcc9b4710fcf04c51d01cb40611efd5f7b835.zip
Merge 0.10->trunk
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index f70f81d0..0776b02e 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -562,7 +562,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
local read, wrote
handshake = coroutine_wrap( function( client ) -- create handshake coroutine
local err
- for i = 1, _maxsslhandshake do
+ for _ = 1, _maxsslhandshake do
_sendlistlen = ( wrote and removesocket( _sendlist, client, _sendlistlen ) ) or _sendlistlen
_readlistlen = ( read and removesocket( _readlist, client, _readlistlen ) ) or _readlistlen
read, wrote = nil, nil