diff options
| author | Daisuke Aritomo <osyoyu@osyoyu.com> | 2025-11-06 11:20:11 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-10 02:40:46 +0000 |
| commit | f29d772a73ed25c5bcc6eab1d55684894292d160 (patch) | |
| tree | efb8c1a2330b3f22fcea4c93e6c4ded1b650953c /include | |
| parent | 97efbc47d080e3ade3b5db889d3740fdf0711161 (diff) | |
[ruby/net-http] Remember if TCPSocket impl supports open_timeout
For open_timeout support detection, the previous implementation relied
on an ArgumentError being raised and then rescued. In Ruby, rescue is a
rather expensive operation and should be avoided when possible.
This patch reduces the number of begin-rescues by remembering if the
TCPSocket implementation supports open_timeout.
https://github.com/ruby/net-http/commit/06d982f3a1
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
