Skip to content

Commit b08bcaf

Browse files
committed
allow use_manual_data_writes for h2
1 parent 732fcfe commit b08bcaf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/h2_stream.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,9 @@ struct aws_h2_stream *aws_h2_stream_new_request(
333333
/* Init H2 specific stuff */
334334
stream->thread_data.state = AWS_H2_STREAM_STATE_IDLE;
335335
/* stream end is implicit if the request isn't using manual data writes */
336-
stream->synced_data.manual_write_ended = !options->http2_use_manual_data_writes;
337-
stream->manual_write = options->http2_use_manual_data_writes;
336+
bool manual_write = options->use_manual_data_writes || options->http2_use_manual_data_writes;
337+
stream->synced_data.manual_write_ended = !manual_write;
338+
stream->manual_write = manual_write;
338339

339340
/* if there's a request body to write, add it as the first outgoing write */
340341
struct aws_input_stream *body_stream = aws_http_message_get_body_stream(options->request);

0 commit comments

Comments
 (0)