22 #include "absl/flags/flag.h"
30 #include "src/proto/grpc/testing/empty.pb.h"
31 #include "src/proto/grpc/testing/messages.pb.h"
32 #include "src/proto/grpc/testing/test.grpc.pb.h"
38 "Server port for testing reconnection.");
42 "Maximum backoff time, or 0 for default.");
50 using grpc::testing::Empty;
54 using grpc::testing::ReconnectService;
57 int main(
int argc,
char** argv) {
65 std::unique_ptr<ReconnectService::Stub> control_stub(
66 ReconnectService::NewStub(
70 reconnect_params.set_max_reconnect_backoff_ms(
74 control_stub->Start(&start_context, reconnect_params, &empty_response);
86 std::shared_ptr<Channel> retry_channel =
88 std::shared_ptr<CallCredentials>(), channel_args);
91 const int kDeadlineSeconds = 540;
93 std::unique_ptr<ReconnectService::Stub> retry_stub(
94 ReconnectService::NewStub(retry_channel));
99 retry_stub->Start(&retry_context, reconnect_params, &empty_response);