Comparison

net/server_select.lua @ 6055:596539a30e9b

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Apr 2014 17:42:22 +0100
parent 5967:3b7206981317
parent 6054:7a5ddbaf758d
child 6286:ec6e8d5a3fd3
comparison
equal deleted inserted replaced
6039:f8df0a996575 6055:596539a30e9b
400 return serverport 400 return serverport
401 end 401 end
402 handler.clientport = function( ) 402 handler.clientport = function( )
403 return clientport 403 return clientport
404 end 404 end
405 handler.port = handler.clientport -- COMPAT server_event
405 local write = function( self, data ) 406 local write = function( self, data )
406 bufferlen = bufferlen + #data 407 bufferlen = bufferlen + #data
407 if bufferlen > maxsendlen then 408 if bufferlen > maxsendlen then
408 _closelist[ handler ] = "send buffer exceeded" -- cannot close the client at the moment, have to wait to the end of the cycle 409 _closelist[ handler ] = "send buffer exceeded" -- cannot close the client at the moment, have to wait to the end of the cycle
409 handler.write = idfalse -- dont write anymore 410 handler.write = idfalse -- dont write anymore