Software /
code /
prosody
Diff
net/server_select.lua @ 7738:0647b821e00a
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Nov 2016 14:18:25 +0100 |
parent | 7526:71ef4a4104d3 |
parent | 7736:5a07fe977002 |
child | 7745:6d6a04628954 |
line wrap: on
line diff
--- a/net/server_select.lua Sun Nov 20 12:06:36 2016 +0100 +++ b/net/server_select.lua Thu Nov 24 14:18:25 2016 +0100 @@ -421,6 +421,7 @@ end handler.port = handler.clientport -- COMPAT server_event local write = function( self, data ) + if not handler then return false end bufferlen = bufferlen + #data if bufferlen > maxsendlen then _closelist[ handler ] = "send buffer exceeded" -- cannot close the client at the moment, have to wait to the end of the cycle