aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-28 01:56:22 +0200
committerKim Alvefur <zash@zash.se>2014-09-28 01:56:22 +0200
commitdfd54e1aed80944b32680f9195bb1494a3469531 (patch)
treecfaf4c445383819dc32ada72c88e3f18079d9b30 /net
parentbc2dc17d56a1a6f35177469c7122dfe577c3bf2c (diff)
parent55bacaf74f778f267bcf1f01c5c11caaa31ac671 (diff)
downloadprosody-dfd54e1aed80944b32680f9195bb1494a3469531.tar.gz
prosody-dfd54e1aed80944b32680f9195bb1494a3469531.zip
Merge 0.10->trunk
Diffstat (limited to 'net')
-rw-r--r--net/server_select.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 9b8e41d9..b9785678 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -569,6 +569,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
_ = status and status( handler, "ssl-handshake-complete" )
if self.autostart_ssl and listeners.onconnect then
listeners.onconnect(self);
+ if bufferqueuelen ~= 0 then
+ _sendlistlen = addsocket(_sendlist, client, _sendlistlen)
+ end
end
_readlistlen = addsocket(_readlist, client, _readlistlen)
return true