Skip to content

feat(altsvc): wire parse_and_cache into response path#846

Merged
benoitc merged 1 commit intomasterfrom
feat/altsvc-wiring
Apr 16, 2026
Merged

feat(altsvc): wire parse_and_cache into response path#846
benoitc merged 1 commit intomasterfrom
feat/altsvc-wiring

Conversation

@benoitc
Copy link
Copy Markdown
Owner

@benoitc benoitc commented Apr 16, 2026

hackney_altsvc:parse_and_cache/3 existed but no call site invoked it, so server-advertised h3 endpoints were silently dropped. hackney_conn now hooks it from every response path (http1 sync+async, h2, h3). Also fixes two parser bugs the wiring exposed: Alt-Svc: clear now invalidates the cached entry, multiple Alt-Svc headers are merged per RFC 7230 §3.2.2.

hackney_conn invokes hackney_altsvc:parse_and_cache after every response
(http1 sync+async, h2, h3) so server Alt-Svc headers actually populate
the cache. Also: clear directive now invalidates the entry, multiple
Alt-Svc headers are merged.
@benoitc benoitc merged commit 943fa9e into master Apr 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant