Skip to content

Commit c9f8b15

Browse files
Fix possible infitite loop diring sending error response
We should check that stream with error response is active to prevent infinite loop during sending error response.
1 parent 7047bf8 commit c9f8b15

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)