GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — dns: fix dns query cache implementation · nodejs/node@6bddf58

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • cares_wrap.cc
  • test/parallel
    • test-dns.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/cares_wrap.cc‎

Copy file name to clipboardExpand all lines: src/cares_wrap.cc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,9 @@ void ChannelWrap::Setup() {
879879
}
880880

881881
/* We do the call to ares_init_option for caller. */
882-
const int optmask =
883-
ARES_OPT_FLAGS | ARES_OPT_TIMEOUTMS |
884-
ARES_OPT_SOCK_STATE_CB | ARES_OPT_TRIES;
882+
const int optmask = ARES_OPT_FLAGS | ARES_OPT_TIMEOUTMS |
883+
ARES_OPT_SOCK_STATE_CB | ARES_OPT_TRIES |
884+
ARES_OPT_QUERY_CACHE;
885885
r = ares_init_options(&channel_, &options, optmask);
886886

887887
if (r != ARES_SUCCESS) {
Collapse file

‎test/parallel/test-dns.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dns.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ assert.throws(() => {
415415
(answer) => Object.assign({ domain }, answer)
416416
),
417417
}), port, address);
418-
}, cases.length * 2 - 1));
418+
}, cases.length * 2));
419419

420420
server.bind(0, common.mustCall(() => {
421421
const address = server.address();

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.