forked from pool/nodejs-electron
* Node 22.15.0 * Added support for system-context-menu on Linux * Fixed a possible crash using the WebView tag and calling focus - Drop CheckPortalAvailabilityOnBusThread-UaF-crash.patch applied upstream - Add system-zstd-in-node.patch to fix build error - 15.6: reverse upstream changes to build with old cares * node-cares-1.21-2.patch * node-cares-1.21-3.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=209
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From b85505d450e3a401cf0d13c096abfc75a7932105 Mon Sep 17 00:00:00 2001
|
|
From: Ethan Arrowood <ethan@arrowood.dev>
|
|
Date: Mon, 7 Apr 2025 05:43:14 -0600
|
|
Subject: [PATCH] dns: restore dns query cache ttl
|
|
|
|
Fixes: https://github.com/nodejs/node/issues/57636
|
|
|
|
Co-authored-by: Robert Nagy <ronagy@icloud.com>
|
|
PR-URL: https://github.com/nodejs/node/pull/57640
|
|
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
|
|
Reviewed-By: Robert Nagy <ronagy@icloud.com>
|
|
Reviewed-By: Tim Perry <pimterry@gmail.com>
|
|
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
|
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
|
Reviewed-By: James M Snell <jasnell@gmail.com>
|
|
---
|
|
src/cares_wrap.cc | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
|
|
index e58f164ca5124a..fc8f361614ba5f 100644
|
|
--- a/third_party/electron_node/src/cares_wrap.cc
|
|
+++ b/third_party/electron_node/src/cares_wrap.cc
|
|
@@ -778,6 +778,7 @@ void ChannelWrap::Setup() {
|
|
options.sock_state_cb_data = this;
|
|
options.timeout = timeout_;
|
|
options.tries = tries_;
|
|
+ options.qcache_max_ttl = 0;
|
|
|
|
int r;
|
|
if (!library_inited_) {
|