]> git.ipfire.org Git - thirdparty/bind9.git/commit
Maintain and report outgoing transfer statistics
authorMichał Kępień <michal@isc.org>
Thu, 31 Jan 2019 14:43:58 +0000 (15:43 +0100)
committerEvan Hunt <each@isc.org>
Thu, 31 Jan 2019 21:55:01 +0000 (16:55 -0500)
commit7f52b872276a8624988a67701939869037a035cd
tree85d09447d28571926f8e96a0dfee50db3dd127e7
parentc20d81fd0679cb3fee53c91e0757d973842f7869
Maintain and report outgoing transfer statistics

Transfer statistics are currently only reported for incoming transfers,
even though they are equally useful for outgoing transfers.  Define a
separate structure for keeping track of the number of messages, records,
and bytes sent during each outgoing transfer, along with the time each
outgoing transfer took.  Repurpose the 'nmsg' field of the xfrout_ctx_t
structure for tracking the number of messages actually sent, ensuring it
is only increased after isc_socket_send() indicates success.  Report the
statistics gathered when an outgoing transfer completes.
lib/ns/xfrout.c