Skip to content

Commit

Permalink
Merge pull request #227 from vkuptcov/fix-error-handling-in-live-stream
Browse files Browse the repository at this point in the history
Properly handle success result for live stream
  • Loading branch information
dvonthenen authored May 27, 2024
2 parents b434ee1 + 2e96d3d commit 9a160a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/client/live/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ func (c *Client) Stream(r io.Reader) error {
default:
bytesRead, err := r.Read(chunk)
switch {
case err == nil:
// do nothing
case strings.Contains(err.Error(), FatalReadSocketErr):
klog.V(1).Infof("Fatal socket error: %v\n", err)
klog.V(6).Infof("live.listen() LEAVE\n")
Expand Down

0 comments on commit 9a160a6

Please sign in to comment.