Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

server: raise Bun.serve idleTimeout to 255s

Raine Virta488264ef9a30
diff --git a/src/server.ts b/src/server.ts
index 433e45c..2f1d73e 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -18,6 +18,7 @@ export function startServer(opts: ServeOptions): { stop: () => void; port: numbe
const server = Bun.serve({
hostname: "127.0.0.1",
port: opts.port,
+ idleTimeout: 255,
async fetch(req) {
const url = new URL(req.url)
const start = Date.now()