Software /
code /
prosody
Comparison
net/server_select.lua @ 7501:8c3d93b67560
net.server_select: remove unused one-letter loop variable [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 14 Jul 2016 18:49:38 +0800 |
parent | 7468:2d38a2519d09 |
child | 7505:3d950ee0de35 |
child | 7526:71ef4a4104d3 |
comparison
equal
deleted
inserted
replaced
7500:4c519444d4a2 | 7501:8c3d93b67560 |
---|---|
568 function handler.set_sslctx(self, new_sslctx) | 568 function handler.set_sslctx(self, new_sslctx) |
569 sslctx = new_sslctx; | 569 sslctx = new_sslctx; |
570 local read, wrote | 570 local read, wrote |
571 handshake = coroutine_wrap( function( client ) -- create handshake coroutine | 571 handshake = coroutine_wrap( function( client ) -- create handshake coroutine |
572 local err | 572 local err |
573 for i = 1, _maxsslhandshake do | 573 for _ = 1, _maxsslhandshake do |
574 _sendlistlen = ( wrote and removesocket( _sendlist, client, _sendlistlen ) ) or _sendlistlen | 574 _sendlistlen = ( wrote and removesocket( _sendlist, client, _sendlistlen ) ) or _sendlistlen |
575 _readlistlen = ( read and removesocket( _readlist, client, _readlistlen ) ) or _readlistlen | 575 _readlistlen = ( read and removesocket( _readlist, client, _readlistlen ) ) or _readlistlen |
576 read, wrote = nil, nil | 576 read, wrote = nil, nil |
577 _, err = client:dohandshake( ) | 577 _, err = client:dohandshake( ) |
578 if not err then | 578 if not err then |