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 | 562a902d415f3a0962354c0f12776ec3e1db594f (patch) | |
tree | 5fafe37e76936f880749432bffa3174a7ca120cd /net/server_select.lua | |
parent | b17b81319300e94b7870e6e9c658f9528bd4c9b9 (diff) | |
parent | 234d7178f15e860dc6c624f1e16dd245372ec34d (diff) | |
download | prosody-562a902d415f3a0962354c0f12776ec3e1db594f.tar.gz prosody-562a902d415f3a0962354c0f12776ec3e1db594f.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 |