diff options
author | Craig Tiller <ctiller@google.com> | 2017-01-27 09:04:21 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-01-27 09:04:21 -0800 |
commit | 80ccebb2e16355666809eb5368751683149eb6a8 (patch) | |
tree | bf2ec0c88fc01289ecb394c8fd5aeade2d5bee99 | |
parent | 277eb9ea3ba6059873cf6b5cede2fc3306c14bae (diff) |
Target 2x BDP
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index faab87bf4c..17ed3a2dcb 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c @@ -135,7 +135,7 @@ static void send_ping_locked(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t, grpc_closure *on_initiate, grpc_closure *on_complete); -#define DEFAULT_MIN_TIME_BETWEEN_PINGS_MS 10 +#define DEFAULT_MIN_TIME_BETWEEN_PINGS_MS 0 #define DEFAULT_MAX_PINGS_BETWEEN_DATA 3 /******************************************************************************* @@ -1946,7 +1946,7 @@ static void read_action_locked(grpc_exec_ctx *exec_ctx, void *tp, int64_t estimate = -1; if (grpc_bdp_estimator_get_estimate(&t->bdp_estimator, &estimate)) { - double target = log2((double)estimate); + double target = 1 + log2((double)estimate); double memory_pressure = grpc_resource_quota_get_memory_pressure( grpc_resource_user_quota(grpc_endpoint_get_resource_user(t->ep))); if (memory_pressure > 0.8) { |