mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #427] [MERGED] Port to tokio-udp #1435
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#1435
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/427
Author: @Keruspe
Created: 4/25/2018
Status: ✅ Merged
Merged: 4/25/2018
Merged by: @bluejekyll
Base:
master← Head:tokio-udp📝 Commits (4)
1467299port to tokio-udp80ae50bmake ClientConnection use a tokio_reactor::Handlef77b1a7only require a tokio_reaction::Handle for Mdns6fa75faMerge branch 'master' into tokio-udp📊 Changes
28 files changed (+106 additions, -99 deletions)
View changed files
📝
Cargo.lock(+5 -0)📝
client/Cargo.toml(+1 -0)📝
client/src/client/client.rs(+26 -2)📝
client/src/client/client_connection.rs(+0 -2)📝
client/src/lib.rs(+1 -0)📝
client/src/multicast/mdns_client_connection.rs(+7 -8)📝
client/src/tcp/tcp_client_connection.rs(+0 -2)📝
client/src/udp/udp_client_connection.rs(+1 -3)📝
integration-tests/Cargo.toml(+1 -0)📝
integration-tests/src/lib.rs(+0 -2)📝
integration-tests/src/tls_client_connection.rs(+0 -2)📝
integration-tests/tests/client_future_tests.rs(+3 -3)📝
integration-tests/tests/client_tests.rs(+0 -2)📝
integration-tests/tests/mdns_tests.rs(+3 -3)📝
integration-tests/tests/secure_client_handle_tests.rs(+1 -1)📝
integration-tests/tests/server_future_tests.rs(+3 -1)📝
proto/Cargo.toml(+2 -0)📝
proto/src/lib.rs(+2 -0)📝
proto/src/multicast/mdns_client_stream.rs(+1 -1)📝
proto/src/multicast/mdns_stream.rs(+17 -19)...and 8 more files
📄 Description
Part of #385, Port to tokio.
In the mdns part, some socket tuning is done using socket2 which is not possible using std::net::UdpSocket (which is used by mio::UdpSocket, which is used by tokio_udp::UdpSocket) so I had to keep the UdpSocket::from_std which requires a tokio_reactor::Handle.
This is the only usage left of Handle from the ClientConnection trait. All other implementors just ignore the Handle.
I'm wondering if we should make a special case for mdns so that we can drop the Handle from ClientConnection?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.