Skip to content

Commit edc203e

Browse files
mishushakovclaude
andauthored
[vitest-pool-workers] Ignore workerd's ungraceful TLS disconnect exception logs (#14821)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 1e1b5ae commit edc203e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/vitest-pool-workers": patch
3+
---
4+
5+
Ignore workerd's `disconnected: peer disconnected without gracefully ending TLS session` exception logs
6+
7+
When tests make real `fetch()` calls to external TLS endpoints, servers and load balancers routinely close idle keepalive connections without sending a TLS `close_notify`. No request fails — the connection is idle — but workerd logs a `kj/compat/tls.c++` exception with a full stack trace each time, flooding otherwise green test runs. This is the TLS sibling of the `disconnected: ...` messages already in the ignore list, so filter it the same way.

packages/vitest-pool-workers/src/pool/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const ignoreMessages = [
8989
"disconnected: worker_do_not_log; Request failed due to internal error",
9090
"disconnected: WebSocket was aborted",
9191
"disconnected: WebSocket peer disconnected",
92+
"disconnected: peer disconnected without gracefully ending TLS session",
9293
"CODE_MOVED for unknown code block",
9394
"broken.outputGateBroken; jsg.Error: Instance dispose",
9495
];

0 commit comments

Comments
 (0)