You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an SSE response ends before its JSON-RPC response arrived, the client now resumes it with a GET carrying Last-Event-ID, honouring the server's retry field - otherwise the request waited for its timeout.
attempts and fallback backoff via ReconnectPolicy (default: 5 attempts, 1-10 s), scheduling via any PSR-20 clock
a stream ending without event ID, a rejected reconnect (405, 401, ...) or 2026-07-28 fail the request at once
Preserve SSE resume metadata and reconnect listening streams
src/Client/Transport/HttpTransport.php:604
The linked issue's acceptance criteria also require resumption while the session is active, but the standalone listening stream still discards every event's id/retry by using dispatchSseData() directly and is permanently closed on EOF below. With listen: true, a transient disconnect therefore silently stops future server-initiated messages for an otherwise connected session. Track its resume metadata and schedule its GET with Last-Event-ID as well.
This issue also appears on line 865 of the same file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClientIssues & PRs related to the Client component
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #327.
When an SSE response ends before its JSON-RPC response arrived, the client now resumes it with a GET carrying
Last-Event-ID, honouring the server'sretryfield - otherwise the request waited for its timeout.ReconnectPolicy(default: 5 attempts, 1-10 s), scheduling via any PSR-20 clock405,401, ...) or2026-07-28fail the request at once404on the reconnect expires the session like any session-bound request ([Client] Invalidate expired HTTP sessions #560)sse-retryconformance scenario passes and is removed from the baseline