Skip to content

Commit

Permalink
Update fetch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 22, 2024
1 parent ff17b42 commit 63fab9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ By default, Bun limits the maximum number of simultaneous `fetch` requests to 25
- It improves overall system stability. Operating systems have an upper limit on the number of simultaneous open TCP sockets, usually in the low thousands. Nearing this limit causes your entire computer to behave strangely. Applications hang and crash.
- It encourages HTTP Keep-Alive connection reuse. For short-lived HTTP requests, the slowest step is often the initial connection setup. Reusing connections can save a lot of time.

Browsers limit the number of simultaneous connections to a host to 6 usually. We don't limit by host, it's a global limit. When the limit is exceeded, the requests are queued and sent as soon as the next request ends.
When the limit is exceeded, the requests are queued and sent as soon as the next request ends.

You can increase the maximum number of simultaneous connections via the `BUN_CONFIG_MAX_HTTP_REQUESTS` environment variable:

Expand Down

0 comments on commit 63fab9a

Please sign in to comment.