ruby/ext
Misaki Shioi ff5fc4b5a1
Do not save the last error without sockets in the connection attempt (#12153)
* Do not save the last_error if there are no sockets waiting to be connected

In this implementation, the results of both name resolution and connection attempts are awaited using select(2).
When it returned, the implementation attempted to check for connections even if there were no sockets currently attempting to connect, treating the absence of connected sockets as a connection failure.
With this fix, it will no longer check for connections when there are no sockets waiting to be connected.

Additionally, the following minor fixes have been made:

* Handle failure of getsockopt(2) and removed unnecessary continue in the loop

* Tweak: Use common API to check in_progress_fds

* Safely call TCPServer.new in test

* Set empty writefds when there is no socket waiting to be connected

* Enable fast_fallback option
2024-11-25 14:10:54 +09:00
..
-test- [Bug #20903] rb_econv_str_append arguments expected to be String 2024-11-22 10:36:05 +09:00
cgi/escape ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
continuation ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
coverage ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
date [ruby/date] Extract Julian calendar epoch literals 2024-11-05 04:19:40 +00:00
digest [ruby/digest] Remove obsolete test runner [ci skip] 2024-11-20 15:14:26 +00:00
erb/escape [ruby/erb] Skip building a native extension for JRuby 2024-01-04 22:33:16 +00:00
etc [ruby/etc] Prefer rb_intern_const over rb_intern for literal strings 2024-11-20 16:38:33 +00:00
fcntl [ruby/fcntl] Fixup gemspec files 2024-11-07 18:45:05 +09:00
fiddle Bump version 2024-11-11 09:28:40 +09:00
io Add a temporal debugging code 2024-11-22 15:00:20 +09:00
json [ruby/json] Fix the BEWARE documentation in load and unsafe_load. 2024-11-18 04:23:18 +01:00
monitor ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
objspace ObjectSpace.dump: handle Module#set_temporary_name 2024-11-12 20:21:27 +01:00
openssl [ruby/openssl] Support signing CRLs using Ed25519 2024-11-22 17:26:03 +00:00
pathname [ruby/pathname] Bump up v0.4.0 2024-11-06 07:09:08 +00:00
psych [ruby/psych] Eagerly require date. 2024-11-20 16:59:55 +00:00
pty [DOC] Fix typos 2024-10-31 12:44:50 +09:00
rbconfig/sizeof ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
ripper Fix memory leak in Ripper for indented heredocs 2024-09-25 08:56:14 -04:00
rubyvm
socket Do not save the last error without sockets in the connection attempt (#12153) 2024-11-25 14:10:54 +09:00
stringio [ruby/stringio] Copy from the relocated string 2024-11-05 05:01:03 +00:00
strscan [ruby/strscan] [CRuby] Optimize strscan_do_scan(): Remove 2024-10-26 18:44:15 +09:00
win32 [ruby/win32-registry] Bump up v0.1.0 2024-11-08 05:18:39 +00:00
win32ole [ruby/win32ole] Bump up v1.9.0 2024-11-01 04:32:35 +00:00
zlib [ruby/zlib] Add support for safe offload of nogvl code. 2024-11-20 21:40:55 +00:00
.document [ruby/io-console] [DOC] Split .document files to sync with ruby/ruby 2023-10-22 11:09:06 +09:00
extmk.rb extmk.rb: define Gem.target_rbconfig not to break Gem::Platform.local 2024-06-18 11:12:52 +09:00
Setup Clean up removed directories in ext/Setup* [ci skip] 2023-01-18 12:02:27 +09:00
Setup.atheos racc/cparse is extracted from ruby/ruby repository 2023-06-08 18:05:07 +09:00
Setup.nt racc/cparse is extracted from ruby/ruby repository 2023-06-08 18:05:07 +09:00