Skip to content

Commit

Permalink
fix error handling in mux
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Apr 5, 2018
1 parent 2b67533 commit 435be61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/proxyman/mux/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (m *Client) handleStatusKeep(meta *FrameMetadata, reader *buf.BufferedReade
s.input.CloseError()
return s.Close()
}
return nil
}
return drain(reader)
}
Expand Down Expand Up @@ -368,6 +369,7 @@ func (w *ServerWorker) handleStatusKeep(meta *FrameMetadata, reader *buf.Buffere
s.input.CloseError()
return s.Close()
}
return nil
}
return drain(reader)
}
Expand Down
1 change: 0 additions & 1 deletion app/proxyman/mux/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func NewStreamReader(reader *buf.BufferedReader) *StreamReader {
// ReadMultiBuffer implmenets buf.Reader.
func (r *StreamReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
if r.leftOver == 0 {
r.leftOver = -1
return nil, io.EOF
}

Expand Down

0 comments on commit 435be61

Please sign in to comment.