Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-11 00:29:15 -05:00
Commit graph pkg-proxy/internal/handler/profile_test.go
Author SHA1 Message Date
Andrew Nesbitt
bb6fb2bb37
Document public-host signing for direct_serve_base_url
Also marks the AWS modules as direct dependencies and drops comments that restate function names.
2026-11-10 16:26:30 +00:00
Andrew Nesbitt
fa38de81de
Merge remote-tracking branch 'origin/main' into pr-671
# Conflicts:
#	internal/storage/blob.go
2026-11-10 16:26:30 +00:00
Simon Chrzanowski
4f3eb35a9b Merge remote-tracking branch 'origin/main' into fix/cap-detached-metadata
# Conflicts:
#	internal/handler/profile_test.go
2026-11-10 12:44:25 +01:00
montehurd
0fd4b5a83f Keep npm packuments in one format across cooldown profiles
Cooldown profiles and the unprefixed URLs share a packument's cache row,
but each chose its format by its own policy: abbreviated without
cooldown, full with it. With cooldown on for only some of them, a request
without cooldown that revalidated the row stored the abbreviated
packument. The next request under cooldown rejected it and fetched the
full one again, even within metadata_ttl, and had no stale copy to serve
when the upstream failed.

Cooldown in the global policy or in any profile now makes all of them
request the full packument, as upstream.npm_full_metadata does. URLs
without cooldown are then served full packuments too.
2026-11-09 18:13:48 -08:00
Simon Chrzanowski
8cf92d1ec1 Cap the metadata fetches that outlive their caller
A metadata fetch always ran on a context detached from its first
caller, so a client could request many uncached documents under
different names and hang up at once, leaving one upstream fetch per
request running to the HTTP client's timeout, each buffering up to
metadata_max_size. Artifact fetches only detach while they hold one of
maxDetachedFetches slots. Metadata fetches now do the same with their
own 64 slots; beyond that, a fetch ends with its first caller.
2026-11-09 17:49:16 +01:00
Milas Bowman
9f400c34af
fix: compile error in cooldown after merge (remove direct serve URL) 2026-11-07 17:13:27 -05:00
Andrew Nesbitt
c2dd16903a
Share publish indexes across cooldown profiles 2026-11-06 09:38:07 +00:00
Andrew Nesbitt
79be33049a
Add cooldown profiles selected by registry URL 2026-11-05 21:42:44 +00:00