Diff

net/server_event.lua @ 2120:93eae69fc121

net.server_event: Set startsslcallback property to nil when we're done handshaking, otherwise we keep trying to repeat the handshake
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 03:55:48 +0000
parent 2119:9fd2782d63f6
child 2121:3a5ed91a9f27
line wrap: on
line diff
--- a/net/server_event.lua	Sun Nov 22 03:53:44 2009 +0000
+++ b/net/server_event.lua	Sun Nov 22 03:55:48 2009 +0000
@@ -388,6 +388,7 @@
 		end
 		self._usingssl = true
 		self.startsslcallback = function( )  -- we have to start the handshake outside of a read/write event
+			self.startsslcallback = nil
 			self:_start_ssl();
 			self.eventstarthandshake = nil
 			return -1