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
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ static int on_stream_complete(DnsStream *s, int error) {
if (s->transactions) {
t = s->transactions;
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);
}
}