Commit ccbc773
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 992a5b1 commit ccbc773
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| 493 | + | |
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
| |||
977 | 978 | | |
978 | 979 | | |
979 | 980 | | |
980 | | - | |
981 | 981 | | |
982 | 982 | | |
| 983 | + | |
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
| |||
0 commit comments