Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzrdx committed Nov 29, 2024
1 parent 48e6f56 commit 87a0748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { renderToPipeableStream } from 'react-dom/server';
import type { AppLoadContext, EntryContext } from 'react-router';
import { ServerRouter } from 'react-router';

const ABORT_DELAY = 5_000;
export const streamTimeout = 5_000;

export default function handleRequest(
request: Request,
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function handleRequest(
<ServerRouter
context={routerContext}
url={request.url}
abortDelay={ABORT_DELAY}
abortDelay={streamTimeout}
/>,
{
[readyOption]() {
Expand Down Expand Up @@ -86,6 +86,6 @@ export default function handleRequest(
},
);

setTimeout(abort, ABORT_DELAY);
setTimeout(abort, streamTimeout * 2);
});
}

0 comments on commit 87a0748

Please sign in to comment.