Commit 1a750b9
committed
fix(server): prevent duplicate and accidental keepalive timer clears
Adds defensive _clearKeepAliveTimer() before setInterval in
handleGetRequest() to prevent duplicate timers when the GET stream is
reinitialized.
Moves _clearKeepAliveTimer() inside the if(stream) guard in
closeStandaloneSSEStream() so it only clears when the standalone stream
is being torn down, preventing accidental clearing of a replay stream's
timer.
Closes #17261 parent 9cfa4f4 commit 1a750b9
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
494 | 495 | | |
495 | 496 | | |
496 | 497 | | |
| |||
982 | 983 | | |
983 | 984 | | |
984 | 985 | | |
985 | | - | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
| |||
0 commit comments