Skip to content

Commit 47cba2d

Browse files
thomasballingerConvex, Inc.
authored and
Convex, Inc.
committed
Increase default reconnect times (#37799)
GitOrigin-RevId: 3ed5bbd072fd080a7d5c4fdec0a5a13488663cbf
1 parent d39e873 commit 47cba2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/sync/web_socket_manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export type OnMessageResponse = {
9595

9696
const serverDisconnectErrors = {
9797
// A known error, e.g. during a restart or push
98-
InternalServerError: { timeout: 100 },
98+
InternalServerError: { timeout: 1000 },
9999
// ErrorMetadata::overloaded() messages that we realy should back off
100100
SubscriptionsWorkerFullError: { timeout: 3000 },
101101
TooManyConcurrentRequests: { timeout: 3000 },
@@ -184,7 +184,7 @@ export class WebSocketManager {
184184
this.lastCloseReason = "InitialConnect";
185185

186186
// backoff for unknown errors
187-
this.defaultInitialBackoff = 100;
187+
this.defaultInitialBackoff = 1000;
188188
this.maxBackoff = 16000;
189189
this.retries = 0;
190190

0 commit comments

Comments
 (0)