Skip to content

Commit

Permalink
resolved: close UDP socket when we received a network error on it
Browse files Browse the repository at this point in the history
  • Loading branch information
poettering committed Feb 15, 2021
1 parent 80710ad commit d68dbb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resolve/resolved-dns-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,8 @@ static int on_dns_packet(sd_event_source *s, int fd, uint32_t revents, void *use
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);

dns_transaction_close_connection(t, /* use_graveyard = */ false);

dns_transaction_retry(t, true);
return 0;
}
Expand Down

0 comments on commit d68dbb3

Please sign in to comment.