storj/pkg/rpc
Jeff Wendling 4fab22d691 pkg/rpc: don't leak goroutines during a drpc dial
we spawned a goroutine to wait on the context's done
channel sending the error afterward, but we forgot
to ensure the context was eventually done, so the
goroutine would be leaked until then.

instead, we can just do a select on two channels to
get the error rather than spawn a goroutine which
makes it impossible to leak a goroutine.

Change-Id: I2fdba206ae6ff7a3441b00708b86b36dfeece2b5
2019-10-04 20:09:36 +00:00
..
rpcpeer all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
rpcstatus pkg/rpc/rpcstatus: Fix return type (#3162) 2019-10-02 14:46:18 -06:00
common_drpc.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
common_grpc.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
common.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
compat_drpc.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
compat_grpc.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
conn.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
dial_drpc.go pkg/rpc: don't leak goroutines during a drpc dial 2019-10-04 20:09:36 +00:00
dial_grpc.go pkg/rpc: add WithInsecure when doing non-tls dials 2019-09-27 09:07:14 -06:00
dial.go pkg/rpc: return context error if ready after DialContext fails 2019-10-04 20:09:00 +00:00
gen.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
rpc_test.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00