Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuan Devecchi <luan@engineer.com>2021-08-01 00:25:55 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2021-08-06 13:31:18 +0300
commit38d3c487e4ca3a3ca570562522ad2777aaa74b61 (patch)
treecb3d05120ecb235d8ce3d54647d8840d89867271 /src/cares_wrap.h
parent4832d1c02c8caf3269c5e3f7bfe750f65885c34c (diff)
dns: add "tries" option to Resolve options
PR-URL: https://github.com/nodejs/node/pull/39610 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'src/cares_wrap.h')
-rw-r--r--src/cares_wrap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cares_wrap.h b/src/cares_wrap.h
index 27322367556..649450315ed 100644
--- a/src/cares_wrap.h
+++ b/src/cares_wrap.h
@@ -155,7 +155,11 @@ struct NodeAresTask final : public MemoryRetainer {
class ChannelWrap final : public AsyncWrap {
public:
- ChannelWrap(Environment* env, v8::Local<v8::Object> object, int timeout);
+ ChannelWrap(
+ Environment* env,
+ v8::Local<v8::Object> object,
+ int timeout,
+ int tries);
~ChannelWrap() override;
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -189,6 +193,7 @@ class ChannelWrap final : public AsyncWrap {
bool is_servers_default_ = true;
bool library_inited_ = false;
int timeout_;
+ int tries_;
int active_query_count_ = 0;
NodeAresTask::List task_list_;
};