Commit 528bc8cb authored by gejun's avatar gejun

Retry for EH2RUNOUTSTREAMS

parent 7296cb7d
......@@ -39,13 +39,13 @@ public:
|| ECONNREFUSED == error_code
|| ECONNRESET == error_code
|| ENODATA == error_code
|| EOVERCROWDED == error_code);
|| EOVERCROWDED == error_code
|| EH2RUNOUTSTREAMS == error_code);
}
};
// NOTE(gejun): g_default_policy can't be deleted on process's exit because
// concurrent processing of responses at client-side may trigger retry and
// use the policy.
// client-side may still retry and use the policy at exit
static pthread_once_t g_default_policy_once = PTHREAD_ONCE_INIT;
static RpcRetryPolicy* g_default_policy = NULL;
static void init_default_policy() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment