Software /
code /
prosody
Comparison
net/server_event.lua @ 6854:d05bbf0bd620
server_event: Remove unused former argument (fixes global access) [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 25 Sep 2015 17:24:43 +0200 |
parent | 6853:a2cc477eb19b |
child | 6855:40236602ab5b |
comparison
equal
deleted
inserted
replaced
6853:a2cc477eb19b | 6854:d05bbf0bd620 |
---|---|
723 client:settimeout( 0 ) -- set nonblocking | 723 client:settimeout( 0 ) -- set nonblocking |
724 local res, err = client:connect( addr, serverport ) -- connect | 724 local res, err = client:connect( addr, serverport ) -- connect |
725 if res or ( err == "timeout" ) then | 725 if res or ( err == "timeout" ) then |
726 local ip, port = client:getsockname( ) | 726 local ip, port = client:getsockname( ) |
727 local interface = wrapclient( client, ip, serverport, listener, pattern, sslctx ) | 727 local interface = wrapclient( client, ip, serverport, listener, pattern, sslctx ) |
728 interface:_start_connection( startssl ) | 728 interface:_start_connection( sslctx ) |
729 debug( "new connection id:", interface.id ) | 729 debug( "new connection id:", interface.id ) |
730 return interface, err | 730 return interface, err |
731 else | 731 else |
732 debug( "new connection failed:", err ) | 732 debug( "new connection failed:", err ) |
733 return nil, err | 733 return nil, err |