-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(client-runtime): tolerate transient server stalls in connection heartbeat #3883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,15 @@ export const make = Effect.gen(function* () { | |
| RpcClient.makeProtocolSocket({ | ||
| retryTransientErrors: false, | ||
| retryPolicy: Schedule.recurs(0), | ||
| // With no protocol-level retry, a single missed pong escalates to a | ||
| // full session teardown, so the default 5s/5s heartbeat drops the | ||
| // connection whenever the server stalls past 5 seconds. Ping often | ||
| // enough to keep NAT/firewall state alive, but give the server room | ||
| // to stall before declaring the link dead. These options come from | ||
| // the effect patch (patches/effect@4.0.0-beta.78.patch); keep that | ||
| // patch in sync when bumping effect. | ||
| pingInterval: "10 seconds", | ||
| pingTimeout: "20 seconds", | ||
| }), | ||
|
Comment on lines
99
to
111
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch — confirmed. Fixed in 986a153 by extending the repo's existing effect patch ( Verified against the reinstalled patched package (not the local drift): a raw |
||
| ).pipe( | ||
| Layer.provide( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.