net.server_select: When an SSL handshake is connected, if there is pending data to...
authorMatthew Wild <mwild1@gmail.com>
Fri, 26 Sep 2014 16:16:46 +0000 (17:16 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 26 Sep 2014 16:16:46 +0000 (17:16 +0100)
net/server_select.lua

index d2192f0abd827bea81de3746f06bde11d5b3ea30..33c18a606140b316ecc55045104bac1750e683a7 100644 (file)
@@ -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