Commit Graph

65 Commits

Author SHA1 Message Date
janardhanvissa d3d2702d29
cleanup: replace dial with newclient (#8196) 2025-05-12 10:57:47 +05:30
Nathan Baulch c8951abc16
*: fix minor typos (#7487)
* Fix typos

* Fix reflecton tests
2024-08-14 22:43:01 +05:30
Ricardo Fernández f64a6a3977
test/channelz: change channelz_test to use write data (#7396) 2024-07-09 13:09:21 -07:00
Doug Fawley a87e923c4b
channelz: fix missing Target on SubChannel type (#7189) 2024-05-03 10:50:09 -07:00
Elisha Silas 09e6fddbcd
Update docs and examples and tests to use NewClient instead of Dial (#7068)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
Co-authored-by: Doug Fawley <dfawley@google.com>
2024-04-19 10:55:23 -07:00
Doug Fawley ec257b4e1c
channelz: pass parent pointer instead of parent ID to RegisterSubChannel (#7101) 2024-04-08 10:01:16 -07:00
Doug Fawley c003fdf4be
channelz: add LocalAddr to listen sockets and test (#7062) 2024-03-21 20:48:10 -04:00
Doug Fawley 800a8e02b5
channelz: re-add state for subchannels (#7046) 2024-03-19 10:53:53 -07:00
Doug Fawley dadbbfa286
channelz: re-add target and state (#7042) 2024-03-18 15:31:19 -07:00
Doug Fawley 55cd7a68b3
channelz: major cleanup / reorganization (#6969) 2024-03-15 11:13:53 -07:00
Doug Fawley 81b9df233e
idle: move idleness manager to separate package and ~13s of tests into it (#6566) 2023-08-23 12:50:42 -07:00
Doug Fawley 33f9fa2e6e
test: speed up two tests (#6558) 2023-08-16 13:15:23 -07:00
Doug Fawley e5d8eac59b
test: improve and speed up channelz keepalive test (#6556) 2023-08-16 08:29:13 -07:00
Doug Fawley 4832debdaa
test: clean up deadlines set in tests (#6506) 2023-08-08 09:23:15 -07:00
Doug Fawley 02946a3f37
resolver: remove deprecated AddressType (#6451) 2023-07-17 13:29:21 -07:00
Doug Fawley fd376a5cbd
test: fix flaky TimeoutOnDeadServer test; some cleanups (#6276) 2023-05-12 11:01:06 -07:00
Easwar Swaminathan bfb57b8b49
testing: delete internal copy of test service proto, and use canonical one (#6164) 2023-04-05 17:12:57 -07:00
Easwar Swaminathan 9bc72deba4
grpc: remove mentions of WithBalancerName from comments (#5555) 2022-08-02 15:56:37 -07:00
Easwar Swaminathan 34660d1029
test: use `t.Fatal` instead of `panic` for service config parsing errors (#5266) 2022-03-22 14:37:12 -07:00
Easwar Swaminathan a73725f42d
channelz: include channelz identifier in logs (#5192) 2022-02-23 07:30:06 -08:00
Easwar Swaminathan a354b1eec3
channelz: rename NewChannelzStorage to NewChannelzStorageForTesting (#5190) 2022-02-09 14:14:44 -08:00
Doug Fawley 997ce619eb
clientconn: do not automatically reconnect addrConns; go idle instead (#4613) 2021-08-10 13:22:34 -07:00
Doug Fawley 0d6a24f68a
test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
Gaurav Gahlot d7a7a304ff
testing: Avoid using context.Background (#3949) 2020-11-05 09:25:17 -08:00
Doug Fawley 02cd07d9bb
cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00
Doug Fawley 15157e2664
test: remove funcServer and some uses of NewTestServiceService (#3867) 2020-09-09 13:23:46 -07:00
Easwar Swaminathan fd393c8989
testdata: Update testdata certs. (#3786)
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new  files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -07:00
Zou Nengren 4e63bcab52
test: replace manual.GenerateAndRegisterManualResolver with grpc.WithResolvers (#3700) 2020-06-23 09:49:44 -07:00
Doug Fawley 4eb418e5b2
balancer: move Balancer and Picker to V2; delete legacy API (#3431) 2020-04-28 14:52:49 -07:00
Garrett Gutierrez 6af3d372ce
Fixed channelz test flakyness. (#3417) 2020-03-03 13:25:42 -08:00
Doug Fawley cb03b9f65c
balancer/base: consider an empty address list an error (#3361) 2020-02-05 13:16:31 -08:00
Easwar Swaminathan d720ab346f
server: Keepalive pings should be sent every [Time] period (#3172)
This PR contains the server side changes corresponding to the client
side changes made in https://github.com/grpc/grpc-go/pull/3102.

Apart from the fix for the issue mentioned in
https://github.com/grpc/grpc-go/issues/2638, this PR also makes some
minor code cleanup and fixes the channelz test for keepalives count.
2019-11-19 14:43:22 -08:00
Doug Fawley ed563a02ea
resolver: add State fields to support error handling (#2951) 2019-10-04 12:59:43 -07:00
Doug Fawley a5e64ec425
test: fix channelz test for violating flow control (#3031)
- Send a message from the test server that the client can block on to know for sure the RPC's header was sent.
- Don't receive in the test server so we can violate flow control
- Set a deadline on the RPC so it can't hang forever.
2019-09-18 13:07:23 -07:00
Doug Fawley 40ed2eb467
server: set and advertise max frame size of 16KB (#3018) 2019-09-11 10:34:34 -07:00
Easwar Swaminathan 70e8b38052
test: end2end test improvements separate server and client configs. (#2877)
- Seperated and documented the options for client and server sides.
- Better support for multiple grpc.Servers. This will be used in other
  improvements that I have in the works.
- Moved some common functionality from channelz_test.go to
  end2end_test.go.
- Added an option to use the default health service implementation, instead
 of each test creating a new health.Server and passing it in. The
 inidividual tests have not been changed in this PR. I will do that in a
 follow up PR to keep the changes to a reasonable size.
- Fixed one of the tests which had to be fixed because of the separation
  of client and server configs.
2019-06-24 14:53:45 -07:00
Doug Fawley d40a995895
balancer/resolver: add loadBalancingConfig and pre-parsing support (#2732) 2019-05-30 09:12:58 -07:00
lyuxuan 42baa8b199
channelz: wait for clean up before next test (#2797) 2019-05-02 14:47:50 -07:00
lyuxuan 955eb8a3c8
channelz: cleanup channel registration if Dial fails (#2733) 2019-04-02 15:42:35 -07:00
Doug Fawley 3910b873d3
bar: add ability to update resolver state atomically and pass directly to the balancer (#2693) 2019-03-22 10:48:55 -07:00
Doug Fawley ed70822b12 keepalive: apply minimum ping time of 10s to client and 1s to server (#2642)
* keepalive: apply minimum ping time of 10s to client and 1s to server

* review fixes
2019-02-21 13:09:37 -08:00
CodeLingo Bot c2f12b83a7 Fix error formatting based on best practices from Code Review Comments (#2615) 2019-02-07 10:01:40 -08:00
Ian Lance Taylor 0e8a6f931c credentials: add TLS 1.3 cipher suites (#2596)
This lets the tests pass with Go1.12beta2.
2019-01-25 08:47:38 -08:00
Doug Fawley 59acad4c45
cleanup: more simplifications (#2574) 2019-01-16 13:07:56 -08:00
Doug Fawley 6cc789b34b
client: make handshake required 'on' by default, not 'hybrid' (#2565) 2019-01-15 09:19:32 -08:00
Masahiro Sano 8fd063a5aa channelz: Implement GetServer method for channelz (#2537) 2019-01-09 10:50:34 -08:00
Doug Fawley 0a391ff2b7
grpctest: add new package to manage tests and support per-test setup/teardown (#2523)
- Migrate `grpc` & `grpc/test` packages to use `Teardown` support to guarantee `leakcheck` is used
2019-01-07 14:24:56 -08:00
Masahiro Sano 1838dedee3 channelz: respect max_results in listing methods (#2516) 2018-12-20 13:53:39 -08:00
lyuxuan ca62c6b92c
channelz: fix GetSecurityValue function name. (#2450) 2018-11-30 06:01:10 +08:00
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00