Software /
code /
prosody
Diff
net/server_select.lua @ 6286:ec6e8d5a3fd3
net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY instead of EINPROGRESS when the dns lookup has multiple results
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Wed, 25 Jun 2014 12:15:00 -0400 |
parent | 6055:596539a30e9b |
child | 6316:e144a1b67c30 |
line wrap: on
line diff
--- a/net/server_select.lua Sat Jun 21 15:05:52 2014 +0200 +++ b/net/server_select.lua Wed Jun 25 12:15:00 2014 -0400 @@ -966,7 +966,7 @@ end client:settimeout( 0 ) local ok, err = client:connect( address, port ) - if ok or err == "timeout" then + if ok or err == "timeout" or err == "Operation already in progress" then return wrapclient( client, address, port, listeners, pattern, sslctx ) else return nil, err