Skip to content

Commit 0fd6d27

Browse files
authored
Merge pull request #2352 from tempesta-tech/Mekhanik/fix-in-0.8
Fix possible infitite loop diring sending error response
2 parents 7047bf8 + c9f8b15 commit 0fd6d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fw/http_frame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ tfw_h2_make_frames(struct sock *sk, TfwH2Ctx *ctx, unsigned long snd_wnd,
21732173
stream = ctx->cur_send_headers;
21742174
parent = stream->sched.parent;
21752175
tfw_h2_stream_sched_remove(sched, stream);
2176-
} else if (ctx->error) {
2176+
} else if (ctx->error && tfw_h2_stream_is_active(ctx->error)) {
21772177
stream = ctx->error;
21782178
parent = stream->sched.parent;
21792179
tfw_h2_stream_sched_remove(sched, stream);

0 commit comments

Comments
 (0)