Misaki Shioi 2025-12-19 06:44:35 +0000 (Fri, 19 Dec 2025)
New Revision: 47244b0f30
https://github.com/ruby/ruby/commit/47244b0f30
Log:
Fix: Specifying 0 should cause an immediate timeout (#15641)
This change fixes a bug in which specifying 0 for timeout-related options (such as the `timeout` option of `Addrinfo.getaddrinfo`) incorrectly results in an infinite wait.
(This change overwrites
https://github.com/ruby/ruby/pull/15626 .)
Modified files:
ext/socket/ipsocket.c
ext/socket/raddrinfo.c
ext/socket/rubysocket.h
ext/socket/socket.c
ext/socket/tcpsocket.c
ext/socket/udpsocket.c
test/socket/test_socket.rb