net/server_select.lua
changeset 6436 b93402cec1c4
parent 6382 57d23c26039b
child 6445 0f4025abbe8f
child 6462 ba421af3dfd3
--- a/net/server_select.lua	Tue Sep 23 19:46:29 2014 +0200
+++ b/net/server_select.lua	Fri Sep 26 17:16:46 2014 +0100
@@ -568,6 +568,9 @@
 						_ = 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