Monitor for client closing stream
Fixes #7946 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
parent
cec240375d
commit
0cdb10448a
|
|
@ -139,7 +139,8 @@ func GetEvents(w http.ResponseWriter, r *http.Request) {
|
|||
if flusher, ok := w.(http.Flusher); ok {
|
||||
flusher.Flush()
|
||||
}
|
||||
case <-r.Context().Done():
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue