storj/pkg/rpc
Jeff Wendling f62107d3e9
pkg/rpc: fix grpc dial timeouts (#3517)
grpc doesn't exit dials right away if the context dialer
returns an error. since that's the only spot where we were
enforcing dial timeouts, dials could just leak for an
unknown amount of time.

add a timeout above the grpc dial because that's the documented
way that grpc expected to be canceled.

Change-Id: Ic47ac61ce8a5f721510cc2c4584f63d43fe4f2d5
2019-11-06 16:42:20 -07:00
..
rpcpeer pkg/rpc/rpcpeer: check both drpc and grpc for peers on a context 2019-11-01 17:04:53 -06:00
rpcpool pkg/rpc: drpc connection pooling 2019-10-22 18:15:24 -06:00
rpcstatus drpc: enable by default (#3452) 2019-11-01 22:43:24 +01:00
common_drpc.go drpc: enable by default (#3452) 2019-11-01 22:43:24 +01:00
common_grpc.go drpc: enable by default (#3452) 2019-11-01 22:43:24 +01:00
common.go pkg/rpc: remove read/write deadlines as a mechanism for request timeouts (#3335) 2019-10-22 17:57:24 -06:00
compat_drpc.go satellite/payments: invoice creation (#3468) 2019-11-05 15:16:02 +02:00
compat_grpc.go satellite/payments: invoice creation (#3468) 2019-11-05 15:16:02 +02:00
conn.go pkg/rpc: drpc connection pooling 2019-10-22 18:15:24 -06:00
dial_drpc.go drpc: enable by default (#3452) 2019-11-01 22:43:24 +01:00
dial_grpc.go pkg/rpc: fix grpc dial timeouts (#3517) 2019-11-06 16:42:20 -07:00
dial.go pkg/rpc: drpc connection pooling 2019-10-22 18:15:24 -06:00
gen.go pkg/rpc: drpc connection pooling 2019-10-22 18:15:24 -06:00
known_ids_test.go pkg/rpc: defeat MITM attacks in most cases (#3215) 2019-10-12 14:34:41 -06:00
known_ids.go pkg/rpc: defeat MITM attacks in most cases (#3215) 2019-10-12 14:34:41 -06:00
rpc_test.go CI: test drpc and grpc (#3163) 2019-10-11 08:30:06 -06:00