mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #635] [MERGED] Enforce udp sockets always close #1568
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#1568
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/635
Author: @bluejekyll
Created: 12/16/2018
Status: ✅ Merged
Merged: 12/17/2018
Merged by: @bluejekyll
Base:
r0.10← Head:enforce-udp-sockets-always-close📝 Commits (4)
4157b13wip: UdpClientStream refactored over single use Socketsa9338befixup UdpClientStream to multiplexed on its own6a06a19update all crates to new UdpClientStream (standard features)3f3eaeeupdate all non-standard features for UDP client📊 Changes
18 files changed (+481 additions, -154 deletions)
View changed files
📝
crates/client/src/lib.rs(+3 -3)📝
crates/client/src/udp/udp_client_connection.rs(+17 -11)📝
crates/https/src/lib.rs(+0 -1)📝
crates/proto/src/error.rs(+25 -16)📝
crates/proto/src/lib.rs(+0 -1)📝
crates/proto/src/op/message.rs(+1 -1)📝
crates/proto/src/udp/mod.rs(+1 -1)📝
crates/proto/src/udp/udp_client_stream.rs(+370 -59)📝
crates/proto/src/udp/udp_stream.rs(+24 -18)📝
crates/proto/src/xfer/dns_multiplexer.rs(+1 -1)📝
crates/proto/src/xfer/mod.rs(+3 -5)📝
crates/resolver/src/lib.rs(+0 -1)📝
crates/resolver/src/name_server_pool.rs(+18 -19)📝
crates/server/src/lib.rs(+0 -1)📝
crates/server/tests/z_named_tests.rs(+4 -4)📝
tests/integration-tests/tests/client_future_tests.rs(+6 -7)📝
tests/integration-tests/tests/client_tests.rs(+3 -0)📝
tests/integration-tests/tests/secure_client_handle_tests.rs(+5 -5)📄 Description
fixes: #633
This change makes UdpClientStream much more like HttpsClientStream, in that it is already multiplexed. All UdpSockets are now bound to the Future handling the UDP request. In this way, when the Future goes away on the request, the UdpSocket will be closed. This will enforce proper semantics in regards to cache poisoning attacks, better than the method before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.