mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Fix: Do not check open_timeout twice (#15626)
This commit is contained in:
parent
305f042105
commit
42d66b894c
Notes:
git
2025-12-19 03:12:39 +00:00
Merged-By: shioimm <shioi.mm@gmail.com>
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user