Skip to content

Commit 94b7170

Browse files
Cherryporsager
authored andcommitted
fix: use lower max connections in Cloudflare Workers environment
1 parent 7f80980 commit 94b7170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function parseOptions(a, b) {
446446

447447
const ints = ['idle_timeout', 'connect_timeout', 'max_lifetime', 'max_pipeline', 'backoff', 'keep_alive']
448448
const defaults = {
449-
max : 10,
449+
max : globalThis.Cloudflare ? 3 : 10,
450450
ssl : false,
451451
sslnegotiation : null,
452452
idle_timeout : null,

0 commit comments

Comments
 (0)