Skip to content

Commit d703065

Browse files
committed
[Workers] Add before/after SVG diagrams for relaxed connection limiting
1 parent 459bc0f commit d703065

4 files changed

Lines changed: 302 additions & 1 deletion

File tree

.opencode/package-lock.json

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 85 additions & 0 deletions
Loading
Lines changed: 93 additions & 0 deletions
Loading

src/content/changelog/workers/2026-04-09-relaxed-connection-limiting.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ description: The six-connection limit now only applies while waiting for respons
44
date: 2026-04-09
55
---
66

7-
The [simultaneous open connections limit](/workers/platform/limits/#simultaneous-open-connections) has been relaxed. Previously, each Worker invocation was limited to six open connections at a time for the entire lifetime of each connection, including while reading the response body. Now, a connection slot is freed as soon as response headers arrive, so the six-connection limit only constrains how many connections can be in the initial "waiting for headers" phase simultaneously.
7+
The [simultaneous open connections limit](/workers/platform/limits/#simultaneous-open-connections) has been relaxed. Previously, each Worker invocation was limited to six open connections at a time for the entire lifetime of each connection, including while reading the response body. Now, a connection is freed as soon as response headers arrive, so the six-connection limit only constrains how many connections can be in the initial "waiting for headers" phase simultaneously.
8+
9+
### Before: Connection counts against limit for its entire lifetime
10+
11+
![A 7th fetch is queued until an earlier connection fully completes, including reading its entire response body](~/assets/images/workers/platform/limits/connection-limit-before.svg)
12+
13+
### After: Connection only counts against limit while waiting for headers
14+
15+
![A 7th fetch starts as soon as any earlier connection receives its response headers](~/assets/images/workers/platform/limits/connection-limit-after.svg)
816

917
This means Workers can now have many more connections open at the same time without queueing, as long as no more than six are waiting for their initial response. This eliminates the `Response closed due to connection limit` exception that could previously occur when the runtime canceled stalled connections to prevent deadlocks.

0 commit comments

Comments
 (0)