Software / code / prosody
Comparison
net/server_select.lua @ 5824:6f4c8af128e2
net.server_select: Return handler from addclient
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 06 Sep 2013 10:53:04 +0200 |
| parent | 5823:b8514209263c |
| child | 5846:b8c7656481ac |
comparison
equal
deleted
inserted
replaced
| 5823:b8514209263c | 5824:6f4c8af128e2 |
|---|---|
| 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, pattern, sslctx ) | 940 return wrapclient( client, address, port, listeners, pattern, sslctx ) |
| 941 else | 941 else |
| 942 wrapconnection( nil, listeners, client, address, port, "clientport", pattern, sslctx ) | 942 return wrapconnection( nil, listeners, client, address, port, "clientport", pattern, sslctx ) |
| 943 end | 943 end |
| 944 end | 944 end |
| 945 | 945 |
| 946 --// EXPERIMENTAL //-- | 946 --// EXPERIMENTAL //-- |
| 947 | 947 |