Skip to content

Commit c30a590

Browse files
committed
fix: disable idleTimeout to prevent connection timeouts
1 parent 4735e91 commit c30a590

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/start.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ export async function runServer(options: RunServerOptions): Promise<void> {
117117
serve({
118118
fetch: server.fetch as ServerHandler,
119119
port: options.port,
120-
// Bun-specific options for longer timeouts
120+
// Bun-specific options - disable timeout
121121
bun: {
122-
// Disable request timeout (set to 0 or very high value)
123-
// Default is 10 seconds, we set to 5 minutes for long streaming requests
124-
idleTimeout: 300, // 5 minutes in seconds
122+
// Set to 0 to disable idle timeout completely
123+
idleTimeout: 0,
125124
},
126125
})
127126
}

0 commit comments

Comments
 (0)