aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-05-10 15:28:01 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-05-10 15:28:01 -0700
commit82c63ebc7655e87cdac172035b4d4474b18e2f2d (patch)
tree91dc615080c36c71acd569abdada589107bf135d /src/core/ext
parentb08fa491c9f3d6059a26663f72633d2f66f35f4b (diff)
Fix refcounting bugs
Diffstat (limited to 'src/core/ext')
-rw-r--r--src/core/ext/client_config/subchannel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ext/client_config/subchannel.c b/src/core/ext/client_config/subchannel.c
index 69b1fa5d34..ead28dbd12 100644
--- a/src/core/ext/client_config/subchannel.c
+++ b/src/core/ext/client_config/subchannel.c
@@ -606,6 +606,10 @@ static void on_alarm(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {
GRPC_ERROR_REF(error);
}
if (error != GRPC_ERROR_NONE) {
+ const char *msg = grpc_error_string(error);
+ gpr_log(GPR_INFO, "Failed to connect to channel, retrying: %s", msg);
+ grpc_error_free_string(msg);
+
c->next_attempt =
gpr_backoff_step(&c->backoff_state, gpr_now(GPR_CLOCK_MONOTONIC));
continue_connect(exec_ctx, c);
@@ -614,6 +618,7 @@ static void on_alarm(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {
gpr_mu_unlock(&c->mu);
GRPC_SUBCHANNEL_WEAK_UNREF(exec_ctx, c, "connecting");
}
+ GRPC_ERROR_UNREF(error);
}
static void subchannel_connected(grpc_exec_ctx *exec_ctx, void *arg,