aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_time_spec.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-06-01 13:38:47 +0100
committerMatthew Wild <mwild1@gmail.com>2020-06-01 13:38:47 +0100
commit8f50f4acfab2bdc8bb38fd684918734eee07c191 (patch)
treec5940301867a9248565cc28dec381cd444aea75b /spec/util_time_spec.lua
parent1ee999ce17640604b48513d23cb5da233c16807a (diff)
downloadprosody-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_time_spec.lua')
0 files changed, 0 insertions, 0 deletions