Commit Graph

78 Commits

Author SHA1 Message Date
Ian Moore 03da31acc6
client: implement maxAttempts for retryPolicy (#7229) 2024-05-24 11:20:00 -07:00
Zach Reyes aea78bdf9d
grpc: Add perTargetDialOption type and global list (#7234) 2024-05-21 12:51:17 -04:00
loselarry 34c76758b1
chore: fix function names in comment (#7117)
Signed-off-by: loselarry <bikangning@yeah.net>
2024-04-19 13:48:36 -07:00
Robert Pająk 59be823a2d
grpc: Deprecate WithBlock, WithReturnConnectionError, FailOnNonTempDialError (#7097) 2024-04-05 10:35:45 -07:00
Zhouyihai Ding 17d1039f5c
grpc: Export header list sizes in DialOption and ServerOption (#7033) 2024-04-01 13:30:26 -07:00
Doug Fawley 55cd7a68b3
channelz: major cleanup / reorganization (#6969) 2024-03-15 11:13:53 -07:00
Doug Fawley 7c377708dc
grpc: clean up doc strings and some code around Dial vs NewClient (#7029) 2024-03-07 16:26:12 -08:00
Matt Straathof c8083227ee
chore: expose `NewClient` method to end users (#7010) 2024-03-07 13:52:41 -08:00
Raghav Jhavar 3c2a44dca3
transport: when using write buffer pooling, use input size instead of size*2 (#6983) 2024-02-15 18:07:19 -05:00
Easwar Swaminathan a03c7f1faa
client: always enable TCP keepalives with OS defaults (#6834) 2023-12-07 14:04:31 -08:00
Doug Fawley 914ca65947
client: further streamlining of Dial (#6802) 2023-11-15 14:52:11 -08:00
Doug Fawley 232054a883
client: remove deprecated WithServiceConfig DialOption (#6800) 2023-11-15 11:17:10 -08:00
Jayden Teoh f1a1fcd042
grpc: disable and document overrides of OS default TCP keepalive by Go (#6672)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
2023-11-07 13:49:01 -08:00
Easwar Swaminathan ddb026e8a8
experimental: add package and move recv buffer pool APIs into it (#6692) 2023-10-12 18:29:29 -07:00
Easwar Swaminathan 9362f2612b
grpc: re-enable channel idleness by default (#6585) 2023-08-29 11:42:17 -07:00
Sergey Matyukevich 9bb44fbf2e
transport: use a sync.Pool to share per-connection write buffer (#6309) 2023-07-20 15:28:06 -07:00
Jaewan Park 1634254ac6
rpc_util: Reuse memory buffer for receiving message (#5862) 2023-06-27 08:58:10 -07:00
Doug Fawley 3ea58ce432
client: disable channel idleness by default (#6328) 2023-05-30 16:33:59 -07:00
Easwar Swaminathan 9b7a947cdc
grpc: support channel idleness (#6263) 2023-05-22 12:42:45 -07:00
ulas 01f8b866af
Add documentation on some anti-patterns (#6034)
Co-authored-by: Doug Fawley <dfawley@google.com>
2023-04-07 10:55:17 -07:00
Zach Reyes 81534105ca
client: Add dial option to disable global dial options (#6016) 2023-02-13 21:13:32 -05:00
Zach Reyes ceb3f07190
client: Revert dialWithGlobalOption (#6012) 2023-02-08 17:02:17 -05:00
Zach Reyes 6a707eb1bb
client: add an option to disable global dial options (#5990) 2023-01-27 17:06:29 -05:00
Zach Reyes 54b7d03e0f
grpc: Add join Dial Option (#5861) 2022-12-16 20:02:04 -05:00
Theodore Salvo 0fe49e823f
grpc: Improve documentation of read/write buffer size server and dial options (#5800)
Fixes https://github.com/grpc/grpc-go/issues/5798
2022-11-28 10:17:00 -08:00
Zach Reyes 5fc798be17
Add binary logger option for client and server (#5675)
* Add binary logger option for client and server
2022-10-06 13:36:05 -04:00
Doug Fawley 02f1a7ac92
grpc: prevent a nil stats handler from causing a panic (#5543) 2022-07-29 10:45:21 -07:00
mitchsw c402378755
doc: remove comment about obsolete GRPC_GO_RETRY env var (#5495) 2022-07-12 13:36:41 -07:00
Lidi Zheng ea86bf7497
stats: add support for multiple stats handlers in a single client or server (#5347) 2022-06-03 09:15:50 -07:00
Lidi Zheng 13b378bc45
internal: add global DialOptions and ServerOptions for all clients and servers (#5352) 2022-06-02 16:17:01 -07:00
Easwar Swaminathan 6c3ccbe89a
grpc: remove remaining usages of grpc.WithInsecure() (#5246) 2022-03-17 10:17:03 -07:00
Easwar Swaminathan eead9a824c
grpc: delete deprecated API WithBalancerName() (#5232) 2022-03-10 13:15:11 -08:00
Easwar Swaminathan a73725f42d
channelz: include channelz identifier in logs (#5192) 2022-02-23 07:30:06 -08:00
Steve Greene 4d58dd98db
dialoptions.go: Fix WithBlock godoc (#5073) 2021-12-23 10:56:58 -08:00
Shitian Ni 8ae11f4622
grpc: minor improvement on WithInsecure() document (#5068) 2021-12-22 11:34:33 -08:00
Easwar Swaminathan dd767416a6
grpc: implement WithInsecure() using the insecure package (#4718) 2021-11-09 15:42:07 -08:00
Doug Fawley c25a52b769
config: remove retry disable via environment variable (#4922) 2021-11-09 13:06:38 -08:00
Igor Zibarev 3b94303f37
grpc: stabilize WithConnectParams DialOption (#4915) 2021-11-03 13:20:53 -07:00
Doug Fawley 6e8625df63
doc: promote WithDisableRetry to stable; clarify retry is enabled by default (#4901) 2021-10-26 14:43:44 -07:00
Doug Fawley fbf9b56376
grpc: stabilize WithDefaultServiceConfig and improve godoc (#4888) 2021-10-20 09:31:50 -07:00
Easwar Swaminathan aaff9e7ab9
grpc: better RFC 3986 compliant target parsing (#4817) 2021-10-14 14:54:02 -07:00
Zach Reyes 1c598a11a4
Move exponential backoff to DNS resolver from resolver.ClientConn (#4270) 2021-04-20 13:20:09 -04:00
Garrett Gutierrez 4be647f7f6
internal/resolver/unix: Implemented unix resolver. (#3890) 2020-10-16 11:52:54 -07:00
Gaurav Gahlot d9063e7af3
standardized experimental warnings (#3917) 2020-10-02 09:11:08 -07:00
Garrett Gutierrez 506b773066
Implemented component logging (#3617) 2020-06-26 12:04:47 -07:00
IceberGu 636b0d84dd
internal: fix typos (#3581) 2020-05-19 19:24:38 -07:00
Doug Fawley 4eb418e5b2
balancer: move Balancer and Picker to V2; delete legacy API (#3431) 2020-04-28 14:52:49 -07:00
sethp-nr b02de00073
client: option to surface connection errors to callers (#3430)
This commit allows blocking clients to receive a more informative error
message than "context deadline exceeded", which is especially helpful in
tracking down persistent client misconfiguration (such as an invalid TLS
certificate, an invalid server that's refusing connections, etc.)
2020-04-09 13:45:13 -07:00
Patrick Bogen e965f2a60b
client: add a WithNoProxy dialoption (#3411) 2020-03-26 15:29:40 -07:00
Doug Fawley cd74fa23ea
internal: remove withResolverBuilder and use WithResolvers instead (#3321) 2020-01-15 08:54:42 -08:00