bind9/lib/isc/netmgr
Matthijs Mekking 6c5ff94218 Don't increment network error stats on UV_EOF
When networking statistics was added to the netmgr (in commit
5234a8e00a), two lines were added that
increment the 'STATID_RECVFAIL' statistic: One if 'uv_read_start'
fails and one at the end of the 'read_cb'.  The latter happens
if 'nread < 0'.

According to the libuv documentation, I/O read callbacks (such as for
files and sockets) are passed a parameter 'nread'. If 'nread' is less
than 0, there was an error and 'UV_EOF' is the end of file error, which
you may want to handle differently.

In other words, we should not treat EOF as a RECVFAIL error.
2020-10-20 10:57:16 +02:00
..
netmgr-int.h Complete the isc_nmhandle_detach() in the worker thread. 2020-10-12 17:51:09 +11:00
netmgr.c Complete the isc_nmhandle_detach() in the worker thread. 2020-10-12 17:51:09 +11:00
tcp.c Don't increment network error stats on UV_EOF 2020-10-20 10:57:16 +02:00
tcpdns.c Clone the csock in accept_connection(), not in callback 2020-10-08 07:24:31 +02:00
udp.c Clone the csock in accept_connection(), not in callback 2020-10-08 07:24:31 +02:00
uv-compat.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
uv-compat.h update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
uverr2result.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00