Skip to content

Commit 5c647b3

Browse files
committed
if it's stalled, also don't send the empty frame
1 parent f7f434e commit 5c647b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/h2_frames.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ int aws_h2_encode_data_frame(
403403
}
404404
}
405405

406-
if (body_sub_buf.len == 0 && !body_ends_stream) {
406+
if (body_sub_buf.len == 0 && !(flags & AWS_H2_FRAME_F_END_STREAM)) {
407407
/* This frame would have no useful information, don't even bother sending it */
408408
goto handle_nothing_to_send_right_now;
409409
}

0 commit comments

Comments
 (0)