Commit 95d6e3f
committed
fix: preserve reconnect attempt counter on second stream disconnect
When the SSE stream ends a second time without a response, the reconnect
attempt counter was incorrectly reset to 0, causing infinite reconnect
loops instead of properly backing off. Pass `attempt + 1` so the counter
advances correctly.1 parent cbe489e commit 95d6e3f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| |||
0 commit comments