summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMisaki Shioi <31817032+shioimm@users.noreply.github.com>2025-12-19 12:12:12 +0900
committerGitHub <noreply@github.com>2025-12-19 12:12:12 +0900
commit42d66b894cdfa356ed67af3000f79f7b2e9185fe (patch)
treef899e89fe4fc2661595a59d323dd4f8af42a3e7c /ext
parent305f04210545d6801b2a4821a91858f0aed84f01 (diff)
Fix: Do not check open_timeout twice (#15626)
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/ipsocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c
index 88225f76e5..c9fcfb64fb 100644
--- a/ext/socket/ipsocket.c
+++ b/ext/socket/ipsocket.c
@@ -633,7 +633,7 @@ init_fast_fallback_inetsock_internal(VALUE v)
unsigned int t;
if (!NIL_P(open_timeout)) {
t = rsock_value_timeout_to_msec(open_timeout);
- } else if (!NIL_P(open_timeout)) {
+ } else if (!NIL_P(resolv_timeout)) {
t = rsock_value_timeout_to_msec(resolv_timeout);
} else {
t = 0;
@@ -1340,7 +1340,7 @@ rsock_init_inetsock(
unsigned int t;
if (!NIL_P(open_timeout)) {
t = rsock_value_timeout_to_msec(open_timeout);
- } else if (!NIL_P(open_timeout)) {
+ } else if (!NIL_P(resolv_timeout)) {
t = rsock_value_timeout_to_msec(resolv_timeout);
} else {
t = 0;