Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't close connection when end of batch is read correctly (segmentio…
…#409) io.EOF is used as a marker that a batch of messages has been completely read. The batch will repackage an io.EOF from the underlying connection as an io.ErrUnexpectedEOF. The previous behavior closed the connection on an io.EOF and restarted the reader loop, which will be much less efficient than continuing to use the connnection.
- Loading branch information