Home
last modified time | relevance | path

Searched refs:retry_policy (Results 1 – 14 of 14) sorted by relevance

/external/grpc-grpc/src/core/ext/filters/client_channel/
Dmethod_params.cc86 auto retry_policy = MakeUnique<ClientChannelMethodParams::RetryPolicy>(); in ParseRetryPolicy() local
92 if (retry_policy->max_attempts != 0) return nullptr; // Duplicate. in ParseRetryPolicy()
94 retry_policy->max_attempts = gpr_parse_nonnegative_int(sub_field->value); in ParseRetryPolicy()
95 if (retry_policy->max_attempts <= 1) return nullptr; in ParseRetryPolicy()
96 if (retry_policy->max_attempts > MAX_MAX_RETRY_ATTEMPTS) { in ParseRetryPolicy()
100 retry_policy->max_attempts = MAX_MAX_RETRY_ATTEMPTS; in ParseRetryPolicy()
103 if (retry_policy->initial_backoff > 0) return nullptr; // Duplicate. in ParseRetryPolicy()
104 if (!ParseDuration(sub_field, &retry_policy->initial_backoff)) { in ParseRetryPolicy()
107 if (retry_policy->initial_backoff == 0) return nullptr; in ParseRetryPolicy()
109 if (retry_policy->max_backoff > 0) return nullptr; // Duplicate. in ParseRetryPolicy()
[all …]
Dmethod_params.h56 const RetryPolicy* retry_policy() const { return retry_policy_.get(); } in retry_policy() function
Dclient_channel.cc1389 const ClientChannelMethodParams::RetryPolicy* retry_policy = in do_retry() local
1390 calld->method_params->retry_policy(); in do_retry()
1391 GPR_ASSERT(retry_policy != nullptr); in do_retry()
1411 .set_initial_backoff(retry_policy->initial_backoff) in do_retry()
1412 .set_multiplier(retry_policy->backoff_multiplier) in do_retry()
1414 .set_max_backoff(retry_policy->max_backoff)); in do_retry()
1441 const ClientChannelMethodParams::RetryPolicy* retry_policy = in maybe_retry() local
1442 calld->method_params->retry_policy(); in maybe_retry()
1443 if (retry_policy == nullptr) return false; in maybe_retry()
1471 if (!retry_policy->retryable_status_codes.Contains(status)) { in maybe_retry()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dresolver_result_parsing.cc69 auto retry_policy = in ParseRetryPolicy() local
84 retry_policy->max_attempts = in ParseRetryPolicy()
86 if (retry_policy->max_attempts <= 1) { in ParseRetryPolicy()
89 } else if (retry_policy->max_attempts > MAX_MAX_RETRY_ATTEMPTS) { in ParseRetryPolicy()
93 retry_policy->max_attempts = MAX_MAX_RETRY_ATTEMPTS; in ParseRetryPolicy()
99 &retry_policy->initial_backoff, in ParseRetryPolicy()
101 retry_policy->initial_backoff == 0) { in ParseRetryPolicy()
107 &retry_policy->max_backoff, &error_list) && in ParseRetryPolicy()
108 retry_policy->max_backoff == 0) { in ParseRetryPolicy()
120 &retry_policy->backoff_multiplier) != 1) { in ParseRetryPolicy()
[all …]
Dresolver_result_parsing.h94 std::unique_ptr<RetryPolicy> retry_policy) in ClientChannelMethodParsedConfig() argument
97 retry_policy_(std::move(retry_policy)) {} in ClientChannelMethodParsedConfig()
103 const RetryPolicy* retry_policy() const { return retry_policy_.get(); } in retry_policy() function
Dclient_channel.cc546 const ClientChannelMethodParsedConfig::RetryPolicy* retry_policy);
1182 method_config == nullptr ? nullptr : method_config->retry_policy()); in SetPollent()
3225 const ClientChannelMethodParsedConfig::RetryPolicy* retry_policy) in RetryingCall() argument
3229 retry_policy_(retry_policy), in RetryingCall()
/external/libwebsockets/lib/core-net/
Dadopt.c76 new_wsi->retry_policy = vhost->retry_policy; in lws_create_new_server_wsi()
584 const lws_retry_bo_t *retry_policy) in lws_create_adopt_udp() argument
604 if (retry_policy) in lws_create_adopt_udp()
605 wsi->retry_policy = retry_policy; in lws_create_adopt_udp()
607 wsi->retry_policy = vhost->retry_policy; in lws_create_adopt_udp()
Dconnect.c68 wsi->retry_policy = i->retry_and_idle_policy; in lws_client_connect_via_info()
70 wsi->retry_policy = &i->context->default_retry; in lws_client_connect_via_info()
Dwsi-timeout.c284 const lws_retry_bo_t *rbo = wsi->retry_policy; in lws_validity_cb()
325 const lws_retry_bo_t *rbo = wsi->retry_policy; in _lws_validity_confirmed_role()
Dprivate-lib-core-net.h547 const lws_retry_bo_t *retry_policy; member
710 const lws_retry_bo_t *retry_policy; member
Dvhost.c518 vh->retry_policy = info->retry_and_idle_policy; in lws_create_vhost()
520 vh->retry_policy = &context->default_retry; in lws_create_vhost()
Dnetwork.c431 wsi->retry_policy, cb, ctry); in lws_retry_sul_schedule_retry_wsi()
/external/libwebsockets/include/libwebsockets/
Dlws-adopt.h228 const lws_retry_bo_t *retry_policy);
/external/libwebsockets/lib/system/async-dns/
Dasync-dns.c30 static const lws_retry_bo_t retry_policy = { variable
327 NULL, NULL, &retry_policy); in lws_async_dns_init()