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.4~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bba9258c75b789997643ca5609799fc24c7acb49;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 c535f86bf6..463443da51 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);