mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Close web socket watches correctly
This commit is contained in:
@@ -88,6 +88,7 @@ type WatchServer struct {
|
|||||||
|
|
||||||
// HandleWS implements a websocket handler.
|
// HandleWS implements a websocket handler.
|
||||||
func (w *WatchServer) HandleWS(ws *websocket.Conn) {
|
func (w *WatchServer) HandleWS(ws *websocket.Conn) {
|
||||||
|
defer ws.Close()
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
var unused interface{}
|
var unused interface{}
|
||||||
|
Reference in New Issue
Block a user