aboutsummaryrefslogtreecommitdiffstats
path: root/util/pluginloader.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-02-23 15:30:00 +0000
committerMatthew Wild <mwild1@gmail.com>2018-02-23 15:30:00 +0000
commita4aeb103dd3274bd174161e9e0f3eff1c5fdca92 (patch)
tree396e06b6e413da3e1699551a2deef98cf608447a /util/pluginloader.lua
parentc0763fa413fbcac2ef3c4f5cac92d218680625db (diff)
downloadprosody-a4aeb103dd3274bd174161e9e0f3eff1c5fdca92.tar.gz
prosody-a4aeb103dd3274bd174161e9e0f3eff1c5fdca92.zip
net.server_select: Better detection of errors for outgoing connections
On connection failure, a socket is marked readable and writable. So to detect initial connection failures (connection refused, etc.) we now watch for sockets becoming readable during initial connection, and also read from readable sockets before writing to writable sockets. This should fix 'onconnect' being called for outgoing connections that actually failed.
Diffstat (limited to 'util/pluginloader.lua')
0 files changed, 0 insertions, 0 deletions