Skip to content

Commit 5af5d6d

Browse files
authored
fix: ignore name server connection read timeout log (#1117)
* fix: ignore conn read timeout * fix: ignore conn read timeout * fix: ignore conn read timeout
1 parent 3f9c59f commit 5af5d6d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/remote/remote_client.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ func (c *remotingClient) receiveResponse(r *tcpConnWrapper) {
179179
if r.isClosed(err) {
180180
return
181181
}
182-
if err != io.EOF {
182+
// ignore name server connection read timeout
183+
if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
184+
rlog.Debug("conn error, close connection", map[string]interface{}{
185+
rlog.LogKeyUnderlayError: err,
186+
})
187+
} else if err != io.EOF {
183188
rlog.Error("conn error, close connection", map[string]interface{}{
184189
rlog.LogKeyUnderlayError: err,
185190
})

0 commit comments

Comments
 (0)