mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #3305] [CLOSED] proto: extend Spawn trait to remove hardcoded tokio::spawn calls #3727
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#3727
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/3305
Author: @CathalMullan
Created: 10/11/2025
Status: ❌ Closed
Base:
main← Head:proto-spawn📝 Commits (1)
a4a385bproto: extend Spawn trait to remove hardcoded tokio::spawn calls📊 Changes
11 files changed (+102 additions, -84 deletions)
View changed files
📝
bin/tests/integration/named_https_tests.rs(+1 -1)📝
bin/tests/integration/named_quic_tests.rs(+1 -1)📝
bin/tests/integration/named_rustls_tests.rs(+2 -2)📝
bin/tests/integration/named_test_rsa_dnssec.rs(+4 -4)📝
bin/tests/integration/named_tests.rs(+20 -20)📝
crates/proto/src/h2/h2_client_stream.rs(+27 -25)📝
crates/proto/src/h3/h3_client_stream.rs(+17 -8)📝
crates/proto/src/runtime.rs(+17 -12)📝
crates/proto/src/xfer/dns_exchange.rs(+1 -1)📝
crates/resolver/src/name_server/connection_provider.rs(+2 -1)📝
util/src/bin/dns.rs(+10 -9)📄 Description
Part of #3304, aiming to make
protolesstokiodependent.Removed the uses of
tokio::spawnby adding a plainspawnmethod to the runtimeSpawntrait.The naming might be slightly confusing now between
spawnandspawn_bg. Added a comment to explain the difference in behavior, but maybe renamingspawn_bgwould be the best option? Or changingspawntospawn_detachedinstead?Also removed the freestanding
hickory_proto::runtime::spawn_bgmethod. Seemed redundant, unless I'm missing something.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.