diff options
author | Kim Alvefur <zash@zash.se> | 2023-11-11 23:08:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-11-11 23:08:34 +0100 |
commit | 8e2ecac95b17cabc13a61a3d91ed99f350412f75 (patch) | |
tree | 80dffaf23f00b052128c0e24c9a202da0ff01da6 /util/presence.lua | |
parent | 1c4021b70feb60c101c39c499dda83729755aa3e (diff) | |
download | prosody-8e2ecac95b17cabc13a61a3d91ed99f350412f75.tar.gz prosody-8e2ecac95b17cabc13a61a3d91ed99f350412f75.zip |
net.http: Add simple connection pooling
This should speed up repeated requests to the same site by keeping their
connections around and sending more requests on them.
Sending multiple requests at the same time is not supported, instead a
request started while another to the same authority is in progress would
open a new one and the first one to complete would go back in the pool.
This could be investigated in the future.
Some http servers limit the number of requests per connection and this
is not tested and could cause one request to fail, but hopefully it will
close the connection and prevent it from being reused.
Diffstat (limited to 'util/presence.lua')
0 files changed, 0 insertions, 0 deletions