Error: failed reading from tcp: Connection reset by peer

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.

Hi Shane,

Thank you for remark. We fixed it in the trunk version. It now only logs
the message when errno != ECONNRESET or when the verbosity level is 2 or
higher.

Regards,

Matthijs Mekking
matthijs@nlnetlabs.nl
Foundation NLnet Labs

Shane Kerr wrote: