mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #434] After Porting to Tokio, it seems impossible to use net2::UdpBuilder #488
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#488
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?
Originally created by @oherrala on GitHub (Apr 27, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/434
We need to use
net2cratesUdpBuilderfor Trust-DNS based DNS server, but with current Git master I can't find a way from going fromstd::net::UdpSockettotokio_udp::UdpSocket. There's probably same issue with TCP side.Related issue: #385.
And pull requests: #427 (UDP), #426 (TCP).
Something like this could work in
server/src/server/server_future.rs'sServerFuture:for registering std's
UdpSocket, but there seems to be two incompatible Tokio Reactors in play here:I'm not too familiar with Tokio, but it looks like Trust-DNS need to change it's Reactor from one version to another to be compatible with tokio-udp?
@bluejekyll commented on GitHub (Apr 27, 2018):
Yes. The libraries are currently in transition from the older tokio libs to the new tokio_* ecosystem. @keruspe is leading the effort there. Not sure if this was missed, or just not done yet.
@Keruspe commented on GitHub (Apr 27, 2018):
@oherrala this needs to be
&tokio_reactor::Handle::current()insted or&handle.Note that all references to any of those
Handleimplementations in public APIs are disappearing in #433@oherrala commented on GitHub (Apr 30, 2018):
Thanks @Keruspe!