Skip to content

Commit 59e0a42

Browse files
committed
feat(sse): update maximum connection duration for SSE streams to 24 hours
1 parent 0967ecf commit 59e0a42

File tree

1 file changed

+1
-1
lines changed
  • apps/hermes/server/src/api/rest/v2

1 file changed

+1
-1
lines changed

apps/hermes/server/src/api/rest/v2/sse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use {
2626
};
2727

2828
// Constants
29-
const MAX_CONNECTION_DURATION: Duration = Duration::from_secs(10); // 24 hours
29+
const MAX_CONNECTION_DURATION: Duration = Duration::from_secs(24 * 60 * 60); // 24 hours
3030

3131
#[derive(Debug, Deserialize, IntoParams)]
3232
#[into_params(parameter_in = Query)]

0 commit comments

Comments
 (0)