Skip to content

Commit 113eb15

Browse files
committed
* sse: change retry instruction to 5s
Signed-off-by: neo <[email protected]>
1 parent 894e6c5 commit 113eb15

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
> due to vulnerability of old versions, has to update to latest despite potential memory consumption is higher
88
* sse: support method PUT/POST with body
99
* sse: channel.close() now closes sse connection gracefully
10+
* sse: change retry instruction to 5s
11+
> in cloud env, we set backend timeout to around 620s, and let client (js) reconnect every 600s
1012
1113
### 9.1.5 (11/11/2024 - 01/22/2025)
1214

core-ng/src/main/java/core/framework/internal/web/sse/ServerSentEventHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void handle(HttpServerExchange exchange, StreamSinkChannel sink) {
9696
support.context.add(channel);
9797
exchange.addExchangeCompleteListener(new ServerSentEventCloseHandler<>(logManager, channel, support.context));
9898

99-
channel.send("retry: 15000\n\n"); // set browser retry to 15s
99+
channel.send("retry: 5000\n\n"); // set browser retry to 5s
100100

101101
request.session = ReadOnlySession.of(sessionManager.load(request, actionLog));
102102
String lastEventId = exchange.getRequestHeaders().getLast(LAST_EVENT_ID);

0 commit comments

Comments
 (0)