diff options
author | 2023-04-03 08:32:19 +0300 | |
---|---|---|
committer | 2023-04-02 22:32:19 -0700 | |
commit | 9b0f12883c2520eecdfb26caec5f48845ccae8af (patch) | |
tree | 0b6d43c7455b2d362e2aed493d83ebc8797b3235 /misctools | |
parent | fcd8b828644cc3cf2bd46bbfc0f6b90789d5dba2 (diff) | |
download | bun-9b0f12883c2520eecdfb26caec5f48845ccae8af.tar.gz bun-9b0f12883c2520eecdfb26caec5f48845ccae8af.tar.zst bun-9b0f12883c2520eecdfb26caec5f48845ccae8af.zip |
[install] reduce parallel HTTP requests under heavy load (#2536)
* [install] reduce parallel HTTP requests under heavy load
* make `max_simultaneous_requests` atomic
Diffstat (limited to 'misctools')
-rw-r--r-- | misctools/http_bench.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misctools/http_bench.zig b/misctools/http_bench.zig index 5e12f0157..efb1069fe 100644 --- a/misctools/http_bench.zig +++ b/misctools/http_bench.zig @@ -198,7 +198,7 @@ pub fn main() anyerror!void { try channel.buffer.ensureTotalCapacity(args.count); try NetworkThread.init(); - if (args.concurrency > 0) HTTP.AsyncHTTP.max_simultaneous_requests = args.concurrency; + if (args.concurrency > 0) HTTP.AsyncHTTP.max_simultaneous_requests.store(args.concurrency, .Monotonic); const Group = struct { response_body: MutableString = undefined, context: HTTP.HTTPChannelContext = undefined, |