janardhanvissa
b0f5027011
cleanup: replace dial with newclient ( #7970 )
2025-02-28 13:53:16 +05:30
janardhanvissa
52a257e680
cleanup: replace dial with newclient ( #7967 )
2025-02-27 16:03:14 -08:00
pvsravani
7e1c9b2029
test: modify tests to use stubserver ( #7951 )
2025-01-29 09:51:01 -08:00
Arvind Bright
8320224ff0
.*: revive from unused_parameters ( #7577 )
2024-08-30 10:41:30 -07:00
Abhishek Ranjan
a639c40f57
test: fix flaky test ClientSendsAGoAway ( #7224 )
2024-05-22 11:18:28 -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
Abhishek Ranjan
f268126950
Send GOAWAY to server on Client Transport Shutdown ( #7015 )
2024-04-17 14:20:12 -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
4832debdaa
test: clean up deadlines set in tests ( #6506 )
2023-08-08 09:23:15 -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
大可
d655f404da
internal/transport: fix severity of log when receiving a GOAWAY with error code ENHANCE_YOUR_CALM ( #5935 )
2023-02-08 16:36:09 -05:00
Zach Reyes
9373e5cb26
transport: Fix closing a closed channel panic in handlePing ( #5854 )
2022-12-13 15:44:03 -05:00
Doug Fawley
99ba98231e
transport/server: flush GOAWAY before closing conn due to max age ( #5821 )
...
Fixes https://github.com/grpc/grpc-go/issues/4859
2022-12-01 09:02:41 -08: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
Doug Fawley
9f97673ba4
test: move e2e goaway tests to goaway_test.go ( #5820 )
2022-11-29 10:08:03 -08:00
赵延
c44f627fd1
cleanup: replace grpc.WithInsecure with insecure.NewCredentials ( #5177 )
2022-02-09 11:17:46 -08:00
Doug Fawley
0d6a24f68a
test: move stubServer to separate package in internal ( #4081 )
2020-12-04 15:56:07 -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
ff9dd65c90
protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService ( #3876 )
2020-09-16 10:15:56 -07:00
Doug Fawley
44d73dff99
cmd/protoc-gen-go-grpc: rework service registration ( #3828 )
2020-08-25 09:28:01 -07:00
Doug Fawley
977142214c
client: fix race between transport draining and new RPCs ( #2919 )
...
Before these fixes, it was possible to see errors on new RPCs after a
connection began draining, and before establishing a new connection. There is
an inherent race between choosing a SubConn and attempting to creating a stream
on it. We should be able to avoid application-visible RPC errors due to this
with transparent retry. However, several bugs were preventing this from
working correctly:
1. Non-wait-for-ready RPCs were skipping transparent retry, though the retry
design calls for retrying them.
2. The transport closed itself (and would consequently error new RPCs) before
notifying the SubConn that it was draining.
3. The SubConn wasn't synchronously updating itself once it was notified about
the closing or draining state.
4. The SubConn would go into the TRANSIENT_FAILURE state instantaneously,
causing RPCs to fail instead of queue.
2019-07-22 16:07:55 -07:00