# HG changeset patch # User Matthew Wild # Date 1411748206 -3600 # Node ID b93402cec1c4cf5bdc8f8919fea2e9b096706841 # Parent 7653bbd5247e3aba8c4982b34bbf68d132f5b194 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) diff -r 7653bbd5247e -r b93402cec1c4 net/server_select.lua --- 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