diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-08 17:57:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-08 17:57:44 +0200 |
commit | b40b79873c9fd79c5fa0bfc1533619a384b26e83 (patch) | |
tree | 2ae675766eb80edea96a00324380f835a8170f97 /COPYING | |
parent | 852e44959d04b56cbf3c761b1ab5e0547ae05cc7 (diff) | |
download | prosody-b40b79873c9fd79c5fa0bfc1533619a384b26e83.tar.gz prosody-b40b79873c9fd79c5fa0bfc1533619a384b26e83.zip |
net.server_epoll: Immediately attempt to read from newly accepted connections
This may speed up client-first protocols (e.g. XMPP, HTTP and TLS) when
the first client data already arrived by the time we accept() it.
If LuaSocket supported TCP_DEFER_ACCEPT we could use that to further
increase the chance that there's already data to handle.
In case no data has arrived, no harm should be done, :onreadable would
simply set the read timeout and we'll get back to it once there is
something to handle.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions