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
(cherry picked from commit d68dbb3)

Related: #2156751
  • Loading branch information
poettering authored and systemd-rhel-bot committed Jun 14, 2023
1 parent fc8959e commit 648fe00
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 @@ -1250,6 +1250,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 648fe00

Please sign in to comment.