diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2025-12-03 02:57:18 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-01-23 16:41:17 +0000 |
| commit | 0379aab6c0f345908e03868ced03936c07b7651a (patch) | |
| tree | 298c7224355318e0b8627ae76c2ac9ac1fc05919 /doc/optparse/ruby/array.rb | |
| parent | 05b85fc1abdefd81a5561ac7d7aed433b7a01400 (diff) | |
[ruby/openssl] ssl: fix errno display in exception messages
The errno reported in an OpenSSL::SSL::SSLError raised by
SSLSocket#accept and #connect sometimes does not match what SSL_accept()
or SSL_connect() actually encountered. Depending on the evaluation order
of arguments passed to ossl_raise(), errno may be overwritten by
peeraddr_ip_str().
While we could just fix peeraddr_ip_str(), we should avoid passing
around errno since it is error-prone. Replace rb_sys_fail() and
rb_io_{maybe_,}wait_{read,writ}able() with equivalents that do not read
errno.
https://github.com/ruby/openssl/commit/bfc7df860f
Diffstat (limited to 'doc/optparse/ruby/array.rb')
0 files changed, 0 insertions, 0 deletions
