Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/disable-headers-timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vercel/sandbox": patch
---

Disable `headersTimeout` on the default undici Agent so long-running `cmd.wait()` long-polls don't abort at undici's 5-minute default. Previously `bodyTimeout` was disabled but `headersTimeout` was left at the default, which cut off `cmd.wait()` when a sandbox command took longer than 5 minutes — even though the sandbox itself was still alive.
1 change: 1 addition & 0 deletions packages/vercel-sandbox/src/api-client/base-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface RequestParams extends RequestInit {

const DEFAULT_AGENT = new Agent({
bodyTimeout: 0, // disable body timeout to allow long logs streaming
headersTimeout: 0, // disable headers timeout so long-poll cmd.wait() doesn't abort after undici's 5-min default
});

/**
Expand Down
Loading