storj/pkg/rpc
Isaac Hess 0008aebf80 pkg/rpc: Change drpcheader to save a packet
This changes when we write the drpcheader. Rather than making it its own
write to the connection, it now prepends the drpc header to the first
write on the connection (typically the tls handshake). This results in
one less packet being sent at the beginning of each drpc connection.

For an operation like uploading a file from uplink, this results in many
packets being dropped: one when communicating with the satellite, and
one for each communication with the storage nodes.

Change-Id: I7644b46e90ffa7acea73ac56831396307352ed7a
2019-12-16 13:33:39 -07:00
..
rpcpeer pkg/rpc: ensure connections are quickly closed 2019-11-12 15:53:36 +00:00
rpcpool pkg/rpc/rpcpool: add idle expiration to connections 2019-12-10 20:32:11 +00:00
rpcstatus pkg/rpc/rpcstatus: do not depend on grpc/drpc build mode 2019-11-18 15:51:58 -07: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 private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
compat_drpc.go pkg/pb: add referral manager protobuf definition (#3561) 2019-11-14 12:33:00 -05:00
compat_grpc.go pkg/pb: add referral manager protobuf definition (#3561) 2019-11-14 12:33:00 -05:00
conn.go pkg/rpc: drpc connection pooling 2019-10-22 18:15:24 -06:00
dial_drpc.go pkg/rpc: Change drpcheader to save a packet 2019-12-16 13:33:39 -07:00
dial_grpc.go pkg/rpc: fix grpc dial timeouts (#3517) 2019-11-06 16:42:20 -07:00
dial.go pkg/rpc/rpcpool: add idle expiration to connections 2019-12-10 20:32:11 +00:00
gen.go pkg/rpc: generate drpc/grpc tags correctly (#3556) 2019-11-12 16:22:21 -07: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 replace planet.Start in tests with planet.Run 2019-12-10 16:55:54 +00:00