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)

vault/0.11
Matthew Wild 12 years ago
parent 3e8095f150
commit 2967393ae8
  1. 3
      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

Loading…
Cancel
Save