Skip to content

Commit

Permalink
Merge pull request grpc#12803 from murgatroid99/backport_uv_refcount_fix
Browse files Browse the repository at this point in the history
Backport grpc#12733
  • Loading branch information
apolcyn authored Oct 4, 2017
2 parents 8e2e9a6 + d05f2f7 commit 3137faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/iomgr/tcp_client_uv.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void tcp_client_connect_impl(grpc_exec_ctx *exec_ctx,
connect->resource_quota = resource_quota;
uv_tcp_init(uv_default_loop(), connect->tcp_handle);
connect->connect_req.data = connect;
connect->refs = 1;
connect->refs = 2; // One for the connect operation, one for the timer.

if (GRPC_TRACER_ON(grpc_tcp_trace)) {
gpr_log(GPR_DEBUG, "CLIENT_CONNECT: %s: asynchronously connecting",
Expand Down

0 comments on commit 3137faa

Please sign in to comment.