Comparison

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
comparison
equal deleted inserted replaced
2119:9fd2782d63f6 2120:93eae69fc121
386 debug( "error:", err ) 386 debug( "error:", err )
387 return nil, err 387 return nil, err
388 end 388 end
389 self._usingssl = true 389 self._usingssl = true
390 self.startsslcallback = function( ) -- we have to start the handshake outside of a read/write event 390 self.startsslcallback = function( ) -- we have to start the handshake outside of a read/write event
391 self.startsslcallback = nil
391 self:_start_ssl(); 392 self:_start_ssl();
392 self.eventstarthandshake = nil 393 self.eventstarthandshake = nil
393 return -1 394 return -1
394 end 395 end
395 if not self.eventwrite then 396 if not self.eventwrite then