Fix caching server name resolution for SRV-only servers #1615

Merged
Aranjedeath merged 1 commit from tulir/continuwuity:fix-srv-only-cache into main 2026-04-06 19:57:06 +00:00
Contributor

The cursed resolver will cache the SRV result for the server_name domain, but this early cache was preventing that. Since all the actual_dest_* methods already call query_and_cache, there shouldn't be any need to call it beforehand.

Pull request checklist:

  • This pull request targets the main branch, and the branch is named something other than
    main.
  • I have written an appropriate pull request title and my description is clear.
  • I understand I am responsible for the contents of this pull request.
  • I have followed the contributing guidelines:
The cursed resolver will cache the SRV result for the server_name domain, but this early cache was preventing that. Since all the `actual_dest_*` methods already call query_and_cache, there shouldn't be any need to call it beforehand. **Pull request checklist:** <!-- You need to complete these before your PR can be considered. If you aren't sure about some, feel free to ask for clarification in #dev:continuwuity.org. --> - [x] This pull request targets the `main` branch, and the branch is named something other than `main`. - [x] I have written an appropriate pull request title and my description is clear. - [x] I understand I am responsible for the contents of this pull request. - I have followed the [contributing guidelines][c1]: - [x] My contribution follows the [code style][c2], if applicable. - [ ] I ran [pre-commit checks][c1pc] before opening/drafting this pull request. - [x] I have [tested my contribution][c1t] (or proof-read it for documentation-only changes) myself, if applicable. This includes ensuring code compiles. - [ ] My commit messages follow the [commit message format][c1cm] and are descriptive. - [x] I have written a [news fragment][n1] for this PR, if applicable<!--(can be done after hitting open!)-->. [c1]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md [c2]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/docs/development/code_style.mdx [c1pc]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#pre-commit-checks [c1t]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#running-tests-locally [c1cm]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#commit-messages [n1]: https://towncrier.readthedocs.io/en/stable/tutorial.html#creating-news-fragments
Fix caching server name resolution for SRV-only servers
Some checks failed
Check Changelog / Check for changelog (pull_request_target) Successful in 10s
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prek / Pre-commit & Formatting (pull_request) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
ab12ab727b
The cursed resolver will cache the SRV result for the server_name
domain, but this early cache was preventing that. Since all the
`actual_dest_*` methods already call query_and_cache, there shouldn't
be any need to call it beforehand.
Add newsfile
Some checks failed
Check Changelog / Check for changelog (pull_request_target) Successful in 9s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
71524384e3
nex force-pushed fix-srv-only-cache from 71524384e3
Some checks failed
Check Changelog / Check for changelog (pull_request_target) Successful in 9s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
to 2b1ae9cd1c
All checks were successful
Check Changelog / Check for changelog (pull_request_target) Successful in 11s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m53s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 36m48s
2026-04-06 15:42:23 +00:00
Compare
nex approved these changes 2026-04-06 15:43:11 +00:00
nex scheduled this pull request to auto merge when all checks succeed 2026-04-06 15:43:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!1615
No description provided.