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

H2 minor fixes #4246

Merged
merged 2 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/varnishd/http2/cache_http2_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,8 +1415,8 @@ h2_sweep(struct worker *wrk, struct h2_sess *h2)
}
switch (r2->state) {
case H2_S_CLOSED:
if (!r2->scheduled)
h2_del_req(wrk, r2);
AZ(r2->scheduled);
h2_del_req(wrk, r2);
break;
case H2_S_CLOS_REM:
if (!r2->scheduled) {
Expand Down
4 changes: 2 additions & 2 deletions bin/varnishd/http2/cache_http2_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,15 @@ h2_ou_session(struct worker *wrk, struct h2_sess *h2,
void
H2_PU_Sess(struct worker *wrk, struct sess *sp, struct req *req)
{
VSLb(req->vsl, SLT_Debug, "H2 Prior Knowledge Upgrade");
VSL(SLT_Debug, sp->vxid, "H2 Prior Knowledge Upgrade");
req->err_code = H2_PU_MARKER;
SES_SetTransport(wrk, sp, req, &HTTP2_transport);
}

void
H2_OU_Sess(struct worker *wrk, struct sess *sp, struct req *req)
{
VSLb(req->vsl, SLT_Debug, "H2 Optimistic Upgrade");
VSL(SLT_Debug, sp->vxid, "H2 Optimistic Upgrade");
req->err_code = H2_OU_MARKER;
SES_SetTransport(wrk, sp, req, &HTTP2_transport);
}
Expand Down
Loading