mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Return correct error upon websocket message read failure
This fixes variable passed as error reason upon websocker message read failure. Previously a wrong variable was passed resulting in returning failure with nil error reason.
This commit is contained in:
parent
1c9840c58e
commit
e1d3aaf861
@ -312,7 +312,7 @@ func (c *wsStreamCreator) readDemuxLoop(bufferSize int, period time.Duration, de
|
|||||||
if errRead == io.EOF {
|
if errRead == io.EOF {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
c.closeAllStreamReaders(fmt.Errorf("read message: %w", err))
|
c.closeAllStreamReaders(fmt.Errorf("read message: %w", errRead))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user