Changeset

6433:b93402cec1c4

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)
author Matthew Wild <mwild1@gmail.com>
date Fri, 26 Sep 2014 17:16:46 +0100
parents 6427:7653bbd5247e
children 6434:382e03a40dd2
files net/server_select.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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