Changeset

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
parents 2476:586147e18fcc
children 2478:7be72eca5666
files net/server_event.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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