diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2018-10-22 10:26:33 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-03-16 19:16:11 +0900 |
commit | 945ed40862393778b1c991b00714dcaf73319c77 (patch) | |
tree | 1cadb4ba975df7c11fceb20f0e49df57a9dfd6d8 /numeric.rb | |
parent | 0b1bb1bc32906a07ed0c3cdf3e64bc10663b011d (diff) |
[ruby/openssl] ssl: retry write on EPROTOTYPE on macOS
Errno::EPROTOTYPE is not supposed to be raised by SSLSocket#write.
However, on macOS, send(2) which is called via SSL_write() can
occasionally return EPROTOTYPE. Retry SSL_write() so that we get a
proper error, just as ext/socket does.
Reference: https://bugs.ruby-lang.org/issues/14713
Reference: https://github.com/ruby/openssl/issues/227
https://github.com/ruby/openssl/commit/2e700c80bf
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'numeric.rb')
0 files changed, 0 insertions, 0 deletions