Skip to content

Commit

Permalink
fix: ignore name server connection read timeout log (#1117)
Browse files Browse the repository at this point in the history
* fix: ignore conn read timeout

* fix: ignore conn read timeout

* fix: ignore conn read timeout
  • Loading branch information
twz915 authored Dec 6, 2023
1 parent 3f9c59f commit 5af5d6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/remote/remote_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ func (c *remotingClient) receiveResponse(r *tcpConnWrapper) {
if r.isClosed(err) {
return
}
if err != io.EOF {
// ignore name server connection read timeout
if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
rlog.Debug("conn error, close connection", map[string]interface{}{
rlog.LogKeyUnderlayError: err,
})
} else if err != io.EOF {
rlog.Error("conn error, close connection", map[string]interface{}{
rlog.LogKeyUnderlayError: err,
})
Expand Down

0 comments on commit 5af5d6d

Please sign in to comment.