Disable idle timeout
This commit is contained in:
parent
43f7574e4e
commit
1a7e93d74d
2 changed files with 1 additions and 5 deletions
5
TODO.txt
5
TODO.txt
|
|
@ -1,5 +0,0 @@
|
||||||
Server listening on http://localhost:7200
|
|
||||||
[Bun.serve]: request timed out after 10 seconds. Pass `idleTimeout` to configure.
|
|
||||||
------------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -84,6 +84,7 @@ initDb();
|
||||||
// Start server
|
// Start server
|
||||||
const server = Bun.serve<SessionData>({
|
const server = Bun.serve<SessionData>({
|
||||||
port,
|
port,
|
||||||
|
idleTimeout: 0, // Disable timeout for long-lived SSE connections
|
||||||
async fetch(req, server) {
|
async fetch(req, server) {
|
||||||
const url = new URL(req.url);
|
const url = new URL(req.url);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue