Skip to content

Commit

Permalink
TUN-8461: Don't log Failed to send session payload if the error is EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
chungthuang committed Jun 14, 2024
1 parent a16532d commit cb6e599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagramsession/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *Session) Serve(ctx context.Context, closeAfterIdle time.Duration) (clos
readBuffer := make([]byte, maxPacketSize)
for {
if closeSession, err := s.dstToTransport(readBuffer); err != nil {
if errors.Is(err, net.ErrClosed) {
if errors.Is(err, net.ErrClosed) || errors.Is(err, io.EOF) {
s.log.Debug().Msg("Destination connection closed")
} else {
level := zerolog.ErrorLevel
Expand Down

0 comments on commit cb6e599

Please sign in to comment.