Diff

net/server_event.lua @ 2477:a08ba94c2a29

net.server_event: Replace all calls to _start_ssl() to its bigger brother starttls() - fixes 5223 w/ libevent
author Matthew Wild <mwild1@gmail.com>
date Thu, 21 Jan 2010 12:23:13 +0000
parent 2462:2d81cc25b5a6
child 2478:7be72eca5666
line wrap: on
line diff
--- a/net/server_event.lua	Thu Jan 21 01:08:50 2010 +0000
+++ b/net/server_event.lua	Thu Jan 21 12:23:13 2010 +0000
@@ -143,7 +143,7 @@
 					debug( "new connection failed. id:", self.id, "error:", self.fatalerror )
 				else
 					if plainssl then  -- start ssl session
-						self:_start_ssl( self.listener.onconnect )
+						self:starttls()
 					else  -- normal connection
 						self:_start_session( self.listener.onconnect )
 					end
@@ -662,7 +662,7 @@
 				local clientinterface = handleclient( client, ip, port, interface, pattern, listener, nil, sslctx )
 				--vdebug( "client id:", clientinterface, "startssl:", startssl )
 				if startssl then
-					clientinterface:_start_ssl( clientinterface.onconnect )
+					clientinterface:starttls()
 				else
 					clientinterface:_start_session( clientinterface.onconnect )
 				end