Software / code / prosody
Comparison
net/server_select.lua @ 5823:b8514209263c
net.server_select: Pass on all arguments to addclient on to wrapclient
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 06 Sep 2013 10:52:37 +0200 |
| parent | 5776:bd0ff8ae98a8 |
| child | 5824:6f4c8af128e2 |
comparison
equal
deleted
inserted
replaced
| 5822:970c666c5586 | 5823:b8514209263c |
|---|---|
| 935 return nil, err | 935 return nil, err |
| 936 end | 936 end |
| 937 client:settimeout( 0 ) | 937 client:settimeout( 0 ) |
| 938 _, err = client:connect( address, port ) | 938 _, err = client:connect( address, port ) |
| 939 if err then -- try again | 939 if err then -- try again |
| 940 local handler = wrapclient( client, address, port, listeners ) | 940 local handler = wrapclient( client, address, port, listeners, pattern, sslctx ) |
| 941 else | 941 else |
| 942 wrapconnection( nil, listeners, client, address, port, "clientport", pattern, sslctx ) | 942 wrapconnection( nil, listeners, client, address, port, "clientport", pattern, sslctx ) |
| 943 end | 943 end |
| 944 end | 944 end |
| 945 | 945 |