# HG changeset patch # User Kim Alvefur # Date 1699743344 -3600 # Node ID 9de7a1b36efb095dc4dd7a86c75b61419953044b # Parent 83a2fb6df746bae1af7f4b4d29d32458d6702cb6 mod_storage_s3: Enable connection pooling added in latest trunk Speed boost, something like a 30% improvement with http://localhost Small risk of failed requests due to limits on number of requests per connection or timeouts. diff -r 83a2fb6df746 -r 9de7a1b36efb mod_storage_s3/mod_storage_s3.lua --- a/mod_storage_s3/mod_storage_s3.lua Sat Nov 11 22:43:34 2023 +0100 +++ b/mod_storage_s3/mod_storage_s3.lua Sat Nov 11 23:55:44 2023 +0100 @@ -113,7 +113,7 @@ if not mt then return nil, "unsupported-store"; end - local httpclient = http.new({}); + local httpclient = http.new({ connection_pooling = true }); httpclient.events.add_handler("pre-request", aws_auth); return setmetatable({ store = store; bucket = bucket; type = typ; http = httpclient }, mt); end