diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-06-01 13:38:47 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-06-01 13:38:47 +0100 |
commit | 30d3969c22ef22ae5fd455a019ab0879c28f43fb (patch) | |
tree | c5940301867a9248565cc28dec381cd444aea75b /util-src/crand.c | |
parent | 5abc2e6a5ce803060cd2c03182d3ae95bd29f694 (diff) | |
download | prosody-30d3969c22ef22ae5fd455a019ab0879c28f43fb.tar.gz prosody-30d3969c22ef22ae5fd455a019ab0879c28f43fb.zip |
net.server_select: Ensure onconnect is always called before onincoming
This changes the code to call onconnect when the first data is sucessfully
read or written, instead of simply when the socket first becomes writable.
A writable socket can mean a connection error, and if the client already
sent some data it may get passed to onincoming before processing writable
sockets. This fixes the issue.
Diffstat (limited to 'util-src/crand.c')
0 files changed, 0 insertions, 0 deletions