Skip to content

Commit 93f806b

Browse files
committed
H2: Turn condition check into assert
We should never be scheduled when on H2_S_CLOSED state.
1 parent 772d738 commit 93f806b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/varnishd/http2/cache_http2_proto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,8 @@ h2_sweep(struct worker *wrk, struct h2_sess *h2)
14151415
}
14161416
switch (r2->state) {
14171417
case H2_S_CLOSED:
1418-
if (!r2->scheduled)
1419-
h2_del_req(wrk, r2);
1418+
AZ(r2->scheduled);
1419+
h2_del_req(wrk, r2);
14201420
break;
14211421
case H2_S_CLOS_REM:
14221422
if (!r2->scheduled) {

0 commit comments

Comments
 (0)