MCPcopy
hub / github.com/grpc/grpc-go / goaway

Function goaway

interop/http2/negative_http2_client.go:72–78  ·  view source on GitHub ↗

sends two unary calls. The server asserts that the calls use different connections.

(ctx context.Context, tc testgrpc.TestServiceClient)

Source from the content-addressed store, hash-verified

70
71// sends two unary calls. The server asserts that the calls use different connections.
72func goaway(ctx context.Context, tc testgrpc.TestServiceClient) {
73 interop.DoLargeUnaryCall(ctx, tc)
74 // sleep to ensure that the client has time to recv the GOAWAY.
75 // TODO(ncteisen): make this less hacky.
76 time.Sleep(1 * time.Second)
77 interop.DoLargeUnaryCall(ctx, tc)
78}
79
80func rstAfterHeader(tc testgrpc.TestServiceClient) {
81 req := largeSimpleRequest()

Callers 1

mainFunction · 0.85

Calls 1

DoLargeUnaryCallFunction · 0.92

Tested by

no test coverage detected