Skip to content

Commit

Permalink
nit: return ErrUnexpectedEOF when the connection dies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Aug 29, 2020
1 parent 3fd2781 commit 1be4578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (s *segmentedBuffer) Append(input io.Reader, length int) error {
if length == n {
err = nil
} else {
err = ErrStreamReset
err = io.ErrUnexpectedEOF
}
}

Expand Down

0 comments on commit 1be4578

Please sign in to comment.