Commit Graph

440 Commits

Author SHA1 Message Date
Doug Fawley e9799e79db
client: support a 1:1 mapping with acbws and addrConns (#6302) 2023-05-23 09:48:08 -07:00
Easwar Swaminathan 9b7a947cdc
grpc: support channel idleness (#6263) 2023-05-22 12:42:45 -07:00
Doug Fawley ed3ceba605
balancer: make producer RPCs block until the SubConn is READY (#6236) 2023-05-02 10:09:23 -07:00
Easwar Swaminathan 8c70261b5c
grpc: ClientConn cleanup in prep for channel idleness (#6189) 2023-04-20 18:49:17 -07:00
Easwar Swaminathan 89ec9609a5
grpc: read the service config channel once instead of twice (#6186) 2023-04-11 14:51:15 -07:00
Sergey Matyukevich a1e657ce53
client: log last error on subchannel connectivity change (#6109) 2023-03-15 10:19:01 -07:00
Doug Fawley 6d612a3e67
resolver: update Resolver.Scheme() docstring to mention requirement of lowercase scheme names (#6014) 2023-02-15 08:51:43 -08: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
Kyle J. Burda 3930549b38
resolver: replace resolver.Target.Endpoint field with Endpoint() method (#5852)
Fixes https://github.com/grpc/grpc-go/issues/5796
2023-01-24 12:03:56 -08:00
Mikhail Mazurskiy 379a2f676c
*: add missing colon to errorf messages to improve readability (#5911) 2023-01-17 16:11:47 -08:00
Arvind Bright 07ac97c355
transport: simplify httpClient by moving onGoAway func to onClose (#5885) 2022-12-21 15:44:31 -06:00
Easwar Swaminathan 68b388b26f
balancer: support injection of per-call metadata from LB policies (#5853) 2022-12-20 15:13:02 -08:00
Zach Reyes a9709c3f8c
Added logs for reasons causing connection and transport close (#5840) 2022-12-08 19:44:23 -05:00
Doug Fawley c91396d4e1
pickfirst: do not return initial subconn while connecting (#5825)
Fixes https://github.com/grpc/grpc-go/issues/5293
2022-11-30 08:57:17 -08:00
littlejian 0d6481fb85
target: replace parsedTarget.Scheme to parsedTarget.URL.Scheme (#5750) 2022-11-01 11:08:00 -07:00
Doug Fawley 9127159caf
client: synchronously verify server preface in newClientTransport (#5731) 2022-10-20 09:29:17 -07:00
Fu Wei 79ccdd8f8e
clientconn: go idle if conn closed after preface received (#5714) 2022-10-18 09:01:08 -07:00
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Zach Reyes a077b94683
Switched unlock to defer in newAddrConn (#5556) 2022-08-02 15:58:50 -04:00
Lidi Zheng 13b378bc45
internal: add global DialOptions and ServerOptions for all clients and servers (#5352) 2022-06-02 16:17:01 -07:00
Alexander Andreev 081c688437
client: fix hctx leakage in addrConn.createTransport (#5337) 2022-05-23 09:23:54 -07:00
Menghan Li 30b9d59a76
client/SubConn: do not recreate addrConn if UpdateAddresses is called with the same addresses (#5373) 2022-05-20 15:17:29 -07:00
Doug Fawley 799605c228
client: fix potential panic during RPC retries (#5323) 2022-05-04 10:06:12 -07:00
Easwar Swaminathan 0066bf69de
grpc: perform graceful switching of LB policies in the `ClientConn` by default (#5285) 2022-04-01 13:14:35 -07:00
Easwar Swaminathan 42cadc171d
test: cleanup balancer switching tests (#5271) 2022-03-30 12:58:41 -07:00
Easwar Swaminathan 597e5d1b1a
don't apply defaultSC upon receipt of invalid service config (#5257) 2022-03-22 08:50:50 -07:00
Easwar Swaminathan c4cabf78f4
grpc: handle invalid service configs by applying the default if available (#5238) 2022-03-16 12:02:56 -07:00
Easwar Swaminathan eead9a824c
grpc: delete deprecated API WithBalancerName() (#5232) 2022-03-10 13:15:11 -08:00
Easwar Swaminathan cf6d4d5ab7
grpc: document ClientConn fields (#5227) 2022-03-09 07:51:20 -08:00
Easwar Swaminathan a73725f42d
channelz: include channelz identifier in logs (#5192) 2022-02-23 07:30:06 -08:00
赵延 c44f627fd1
cleanup: replace grpc.WithInsecure with insecure.NewCredentials (#5177) 2022-02-09 11:17:46 -08:00
Menghan Li cf8b64e2c5
internal: add log when service config is disabled (#4973) 2021-11-12 12:58:35 -08:00
Easwar Swaminathan 82d8af8bf0
balancer: add Authority field to balancer.BuildOptions (#4969) 2021-11-11 10:59:18 -08:00
Easwar Swaminathan dd767416a6
grpc: implement WithInsecure() using the insecure package (#4718) 2021-11-09 15:42:07 -08:00
Doug Fawley 2a312458e6
client: don't force passthrough as default resolver (#4890) 2021-10-20 14:01:46 -07:00
Easwar Swaminathan aaff9e7ab9
grpc: better RFC 3986 compliant target parsing (#4817) 2021-10-14 14:54:02 -07:00
Easwar Swaminathan 5bfc05fb0c
grpc: clarify the use of transport.ErrConnClosing from createTransport() (#4757) 2021-09-13 11:50:52 -07:00
Doug Fawley d25e31e741
client: fix case where GOAWAY would leak connections and memory (#4755) 2021-09-10 14:12:13 -07:00
Easwar Swaminathan 7f560ef4c5
grpc: close underlying transport when subConn is closed when in connecting state (#4751) 2021-09-10 14:08:26 -07:00
Doug Fawley 8ab16ef276
balancer: add ExitIdle optional interface (#4673) 2021-08-18 15:04:35 -07:00
Doug Fawley 997ce619eb
clientconn: do not automatically reconnect addrConns; go idle instead (#4613) 2021-08-10 13:22:34 -07:00
Doug Fawley dd589923e1
clientconn: stop automatically connecting to idle subchannels returned by picker (#4579) 2021-07-02 16:21:46 -07:00
Menghan Li 45549242f7
internal: fix deadlock during switch_balancer and NewSubConn() (#4536) 2021-06-11 13:14:09 -07:00
Doug Fawley b1f7648a9f
client: ensure LB policy is closed before closing resolver (#4478) 2021-05-21 15:15:58 -07:00
Doug Fawley c15291b0f5
client: initialize safe config selector when creating ClientConn (#4398) 2021-05-07 15:24:10 -07:00
Menghan Li 7276af6dd7
client: fix leaked addrConn struct when addresses are updated (#4347) 2021-04-22 10:45:24 -07:00
apolcyn c229922995
client: propagate connection error causes to RPC statuses (#4311) 2021-04-13 13:06:05 -07:00
Edmond 39a500abb9
support unix-abstract schema (#4079) 2020-12-22 08:56:49 -08:00