diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-02-23 15:30:00 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-02-23 15:30:00 +0000 |
commit | a4aeb103dd3274bd174161e9e0f3eff1c5fdca92 (patch) | |
tree | 396e06b6e413da3e1699551a2deef98cf608447a /net/http.lua | |
parent | c0763fa413fbcac2ef3c4f5cac92d218680625db (diff) | |
download | prosody-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 'net/http.lua')
0 files changed, 0 insertions, 0 deletions