diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-26 20:11:03 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-26 20:11:03 +0100 |
commit | 728d74d8bf721e7f9377bcdeea7e456f15d0e856 (patch) | |
tree | 5fafe37e76936f880749432bffa3174a7ca120cd /net/server_select.lua | |
parent | c8bbcabaf7597f13bace9e5aefc98ecb9e172796 (diff) | |
parent | 1b95aabe8959649223e49482b31eea221844d7a3 (diff) | |
download | prosody-728d74d8bf721e7f9377bcdeea7e456f15d0e856.tar.gz prosody-728d74d8bf721e7f9377bcdeea7e456f15d0e856.zip |
Merge 0.10->trunk
Diffstat (limited to 'net/server_select.lua')
-rw-r--r-- | net/server_select.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index 0776b02e..f051da24 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -416,6 +416,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport 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 |