net/server_select.lua
changeset 6445 0f4025abbe8f
parent 6383 ec8878113907
parent 6436 b93402cec1c4
child 6468 ab68bb837fe0
--- a/net/server_select.lua	Sat Sep 27 19:00:09 2014 +0200
+++ b/net/server_select.lua	Sun Sep 28 01:56:22 2014 +0200
@@ -569,6 +569,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