Skip to content
Snippets Groups Projects
Commit 81bcff7b authored by Craig Tiller's avatar Craig Tiller
Browse files

Flip conditional

parent 3ceabdee
Branches
Tags
No related merge requests found
...@@ -2046,7 +2046,7 @@ static void incoming_byte_stream_update_flow_control(grpc_exec_ctx *exec_ctx, ...@@ -2046,7 +2046,7 @@ static void incoming_byte_stream_update_flow_control(grpc_exec_ctx *exec_ctx,
(int64_t)have_already) { (int64_t)have_already) {
write_type = GRPC_CHTTP2_STREAM_WRITE_INITIATE_COVERED; write_type = GRPC_CHTTP2_STREAM_WRITE_INITIATE_COVERED;
} }
if (s->incoming_window_delta - s->announce_window < if (s->incoming_window_delta - s->announce_window >
-(int64_t)initial_window_size / 2) { -(int64_t)initial_window_size / 2) {
write_type = GRPC_CHTTP2_STREAM_WRITE_PIGGYBACK; write_type = GRPC_CHTTP2_STREAM_WRITE_PIGGYBACK;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment