Cap writes at 1 meg - consider autotuning later

pull/10935/head
Craig Tiller 8 years ago
parent 2b465f00e9
commit 02cc83b51a
  1. 5
      src/core/ext/transport/chttp2/transport/writing.c

@ -208,10 +208,7 @@ grpc_chttp2_begin_write_result grpc_chttp2_begin_write(
/* for each grpc_chttp2_stream that's become writable, frame it's data
(according to available window sizes) and add to the output buffer */
while (true) {
if (t->outbuf.length >
GPR_CLAMP(t->settings[GRPC_SENT_SETTINGS]
[GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE],
1024, 1024 * 1024)) {
if (t->outbuf.length > 1024 * 1024) {
partial_write = true;
break;
}

Loading…
Cancel
Save