Repository navigation
server media: a host with more addresses than the lookup's queue holds resolves - #3035
Merged
Merged
Conversation
ashhart
marked this pull request as ready for review
November 12, 2026 17:30
…s resolves The lookup for a media URL filled a 32-slot queue that only its own thread read, so a 33rd address waited forever and held the request's connection slot. The lookup now runs beside its reader. Every address must still be public and the connection still goes to the first.
ashhart
force-pushed
the
security/media-host-lookup
branch
from
November 13, 2026 00:02
6d11acd to
d6ef665
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Before: the lookup for a media URL filled a 32-slot queue that only its own thread read, so a host with 33 or more addresses blocked the request for good and held its connection slot. After: the lookup runs beside its reader, an answer of any length is read to the end, every address must still be public, and the connection still goes to the first.
SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
6d11acde777337be406879d17e38b0dd5291c2f8python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkon 1 files: passesgit diff --check: passeszig build test-server-cpu test-media-request-ownership-host: 12/12 steps succeeded; 2062/2069 tests passed (7 skipped)zig build check-native-cuda-host compile-flashnext-mtp-parity-host compile-glm-native-open: 11/11 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeeded; 32/32 tests passedsecurity: a host with more addresses than the lookup's queue holds resolves, each address still checkedzig build testand every step that runs on a GPU were not run: this Mac's GPU was serving a model, and no CUDA, ROCm or Intel hardware was available.Receipt
n/a. This change cannot reach inference: it is the fetch of a media URL before the request is admitted, and only with
--vision --vision-urls.Checklist
b38a4dd02. On this base only the passing side was rerun.Notes for the reviewer
Suggested changelog line
Server: a media URL whose host has more than 32 addresses no longer hangs the request.