aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/struct.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-11-11 23:08:34 +0100
committerKim Alvefur <zash@zash.se>2023-11-11 23:08:34 +0100
commit8e2ecac95b17cabc13a61a3d91ed99f350412f75 (patch)
tree80dffaf23f00b052128c0e24c9a202da0ff01da6 /util-src/struct.c
parent1c4021b70feb60c101c39c499dda83729755aa3e (diff)
downloadprosody-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-src/struct.c')
0 files changed, 0 insertions, 0 deletions