Commit a4cb11b
committed
Reset reconnection attempt counter when server makes progress
When the server sends new events before closing the stream (indicated by
a changed last_event_id), the reconnection is intentional and the attempt
counter should reset to 0. Only increment the counter when no new events
were received, which indicates an actual failure to make progress.
This prevents legitimate server-initiated reconnection patterns from
being penalized by the retry limit while still protecting against
infinite loops when the server returns empty responses.
Github-Issue: #23971 parent 2efbb42 commit a4cb11b
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
427 | 430 | | |
428 | 431 | | |
429 | 432 | | |
| |||
0 commit comments