1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

resolve: correctly count TCP transaction failures

Fixes #9281.
This commit is contained in:
Yu Watanabe 2018-06-13 13:13:34 +09:00
parent 3c0dcbcf4f
commit eab39da1fa

View File

@ -536,7 +536,7 @@ static int on_stream_complete(DnsStream *s, int error) {
if (s->transactions) { if (s->transactions) {
t = s->transactions; t = s->transactions;
assert_se(sd_event_now(t->scope->manager->event, clock_boottime_or_monotonic(), &usec) >= 0); assert_se(sd_event_now(t->scope->manager->event, clock_boottime_or_monotonic(), &usec) >= 0);
dns_server_packet_lost(t->server, IPPROTO_UDP, t->current_feature_level, usec - t->start_usec); dns_server_packet_lost(t->server, IPPROTO_TCP, t->current_feature_level, usec - t->start_usec);
} }
} }