All,
I see the following message fairly frequently in our nsd.log files:
error: failed reading from tcp: Connection reset by peer
A quick grep through the source code reveals that this log message comes
from server.c, and can come pretty much at any time during a TCP query.
Since:
- This condition occurs during normal operation, and
- There is nothing a server operator can do about it.
I suggest that it should not be in the logs. All it does is make server
operators confused and nervous (at least, it made me confused and
nervous when I saw these messages).
I've included a very short patch to NSD that seems to do the trick.