Skip to content

Commit

Permalink
Merge pull request #7986 from jwhonce/issues/7946
Browse files Browse the repository at this point in the history
Monitor for client closing stream
  • Loading branch information
openshift-merge-robot committed Oct 10, 2020
2 parents cec2403 + 0cdb104 commit 36d5ab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/api/handlers/compat/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

}
}

0 comments on commit 36d5ab5

Please sign in to comment.