From: Timo Sirainen Date: Wed, 29 Aug 2018 17:43:22 +0000 (+0300) Subject: dns: Fix duration field in dns_worker_request_finished event X-Git-Tag: 2.3.9~1497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0deba9fa76160ddb31e10ce25c46683e5997a9d0;p=thirdparty%2Fdovecot%2Fcore.git dns: Fix duration field in dns_worker_request_finished event --- diff --git a/src/dns/dns-client.c b/src/dns/dns-client.c index 78ea2843d1..d069503fc0 100644 --- a/src/dns/dns-client.c +++ b/src/dns/dns-client.c @@ -51,6 +51,9 @@ static int dns_client_input_args(struct connection *client, const char *const *a /* shouldn't happen, but fix it anyway.. */ ret = EAI_NONAME; } + /* update timestamp after hostname lookup so the event duration + field gets set correctly */ + io_loop_time_refresh(); if (ret != 0) { const char *err = net_gethosterror(ret); e->add_int("error_code", ret);