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 | 8f50f4acfab2bdc8bb38fd684918734eee07c191 (patch) | |
tree | c5940301867a9248565cc28dec381cd444aea75b /spec/util_hashes_spec.lua | |
parent | 1ee999ce17640604b48513d23cb5da233c16807a (diff) | |
download | prosody-8f50f4acfab2bdc8bb38fd684918734eee07c191.tar.gz prosody-8f50f4acfab2bdc8bb38fd684918734eee07c191.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 'spec/util_hashes_spec.lua')
0 files changed, 0 insertions, 0 deletions