Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facilitate simpler custom implementations of http1 #4224

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

nigoroll
Copy link
Member

@nigoroll nigoroll commented Nov 5, 2024

These two little changes help custom http1 implementations to only reimplement the transport's deliver callback without copying all of the code.

@nigoroll
Copy link
Member Author

bugwash ok

…y once

This allows to re-use http1_new_session from custom implementations, in that it
can serve as an entry point into the state machine also for existing sessions
(without requiting 8 bytes of session workspace for each request served).
This allows code-reuse from custom implementations where only the deliver
deliver callback differs.
@nigoroll nigoroll merged commit f279c0c into varnishcache:master Nov 18, 2024
1 of 11 checks passed
@nigoroll nigoroll mentioned this pull request Nov 18, 2024
@nigoroll nigoroll deleted the http1_code_reuse branch November 18, 2024 15:04
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