-
Notifications
You must be signed in to change notification settings - Fork 390
http: Skip req and beresp trailers #4125
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
Open
dridi
wants to merge
23
commits into
varnishcache:master
Choose a base branch
from
dridi:skip_trailers
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
dfd259c
v1f: Read end-of-chunk as part of the chunk
nigoroll 53e5ebf
v1f: pull chunk header parsing into an own function
nigoroll c9cf501
v1f: Send VFP_END with last data for v1f chunked
nigoroll 1abb0fa
Stabilize partial write -sdeprecated_persistent test
nigoroll 785df1a
htc: Handle workspace overflow in WS_Pipeline()
walid-git 58c0ca3
vrt: New .gettrls() callback in struct vdi_methods
walid-git 49ce4a9
http1: Rename HTTP1_Complete() to HTTP1_Headers()
dridi 16f13e0
http1: Introduce HTTP1_Trailers()
walid-git b4cab11
vdi: New VDI_GetTrl() function
walid-git 1117c0a
body: New BS_TRAILERS body status
dridi e002a8a
http1: Learn how to dissect trailers
dridi 818c8bb
http1: Extract reusable logic from V1F_FetchRespHdr()
dridi 739b4a1
http1: Introduce HTTP1_RxTrailers()
dridi 9e827c5
vbe: Implement the gettrls() method
dridi fe060fe
fetch: Parse final (CR)?LF outside of v1f_chunked
walid-git f1be56e
vrb: Process req trailers
walid-git caf39cd
hpack: Keep track of seeing any pseudo-header
walid-git 29a53a5
http2_proto: Guard HEADERS setup for the IDLE state
walid-git 05fbea9
hpack: Pass the request being decoded
walid-git 5424456
http2: Add minimal support for trailers
walid-git 2776798
http1_fsm: Homework for later
dridi e6adb44
vtc_http2: Avoid argv overflow
dridi 9364f3b
vtc_http2: content-encoding is not a pseudo header
dridi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
varnishtest "Chunked response with trailers" | ||
|
||
server s0 { | ||
rxreq | ||
txresp -nolen \ | ||
-hdr "Transfer-Encoding: chunked" | ||
chunked chunk | ||
chunked another | ||
send "0\r\n" | ||
send "Trailer: test\r\n" | ||
send "\r\n" | ||
} -start | ||
|
||
varnish v1 -vcl+backend { | ||
sub vcl_backend_response { | ||
set beresp.do_stream = false; | ||
} | ||
} -start | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
expect resp.status == 200 | ||
} -run |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be squashed into the commit that causes connection pooling to break with backend chunked responses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have time to look closer, because this change is awaiting other h2-related work, but we'll look at this when it's time to rebase the branch.