Skip to content

Commit 0792f8b

Browse files
thomasballingerConvex, Inc.
authored and
Convex, Inc.
committed
Retry immediately for client-initiated disconnects (#37805)
This was inadvertently changed from 100ms to 1000ms in 1.24.7, this change restore the previous behavior of 100ms. GitOrigin-RevId: 82e67f485006b5cacf3e2082beded39f14c4a52d
1 parent 8392709 commit 0792f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/sync/web_socket_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ export class WebSocketManager {
588588
private nextBackoff(reason: "client" | ServerDisconnectError): number {
589589
const initialBackoff: number =
590590
reason === "client"
591-
? this.defaultInitialBackoff
591+
? 100 // There's no evidence of a server problem, retry quickly
592592
: reason === "Unknown"
593593
? this.defaultInitialBackoff
594594
: serverDisconnectErrors[reason].timeout;

0 commit comments

Comments
 (0)