|
|
|
@ -338,11 +338,13 @@ static void init_transport(grpc_exec_ctx* exec_ctx, grpc_chttp2_transport* t, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
t->dirtied_local_settings = 1; |
|
|
|
|
if (!true /*diable flow control */) { |
|
|
|
|
/* Hack: it's common for implementations to assume 65536 bytes initial send
|
|
|
|
|
window -- this should by rights be 0 */ |
|
|
|
|
t->force_send_settings = 1 << GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE; |
|
|
|
|
t->sent_local_settings = 0; |
|
|
|
|
t->write_buffer_size = grpc_core::chttp2::kDefaultWindow; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (is_client) { |
|
|
|
|
grpc_slice_buffer_add(&t->outbuf, grpc_slice_from_copied_string( |
|
|
|
@ -555,6 +557,12 @@ static void init_transport(grpc_exec_ctx* exec_ctx, grpc_chttp2_transport* t, |
|
|
|
|
kFrameSize; |
|
|
|
|
t->settings[GRPC_ACKED_SETTINGS][GRPC_CHTTP2_SETTINGS_MAX_FRAME_SIZE] = |
|
|
|
|
kFrameSize; |
|
|
|
|
t->settings[GRPC_PEER_SETTINGS][GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE] = |
|
|
|
|
grpc_core::chttp2::kMaxWindow; |
|
|
|
|
t->settings[GRPC_SENT_SETTINGS][GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE] = |
|
|
|
|
grpc_core::chttp2::kMaxWindow; |
|
|
|
|
t->settings[GRPC_ACKED_SETTINGS][GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE] = |
|
|
|
|
grpc_core::chttp2::kMaxWindow; |
|
|
|
|
enable_bdp = false; |
|
|
|
|
} else { |
|
|
|
|
t->flow_control.Init<grpc_core::chttp2::TransportFlowControl>(exec_ctx, t, |
|
|
|
|