From 2967393ae804d87f2cd97c97bf8cf58b501f4e67 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 26 Sep 2014 17:16:46 +0100 Subject: net.server_select: When an SSL handshake is connected, if there is pending data to be written to the socket, mark the socket as waiting to send (thanks daurnimator) --- net/server_select.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/server_select.lua b/net/server_select.lua index d2192f0a..33c18a60 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -568,6 +568,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 -- cgit v1.2.3