Skip to content

Commit

Permalink
ignore unexpected EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Mar 26, 2024
1 parent 5959506 commit 7072071
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/proxy/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func (r *replayConnector) readPacket() (payload []byte, toServer bool, err error

err = binary.Read(r.packetF, binary.LittleEndian, &magic)
if err != nil {
if err == io.ErrUnexpectedEOF {
err = io.EOF
}
if errors.Is(err, io.EOF) {
logrus.Info("Reached End")
return nil, false, nil
Expand Down

0 comments on commit 7072071

Please sign in to comment.