diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2024-12-22 00:35:03 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-01-22 16:45:19 +0000 |
| commit | 72480389d149063f2c990227e9b490889f0fc407 (patch) | |
| tree | 12137e10ae592e68be6920797ee1e335ec88afbd /include/ruby/io | |
| parent | 4df16051be7acb9ed9631b8714cea826e4b535e8 (diff) | |
[ruby/openssl] ssl: fix SSLSocket#sysread leaking locktmp String on timeout
Commit https://github.com/ruby/openssl/commit/3bbf5178a90e made blocking methods on SSLSocket follow the
IO#timeout= value. The commit changed io_wait_readable() to potentially
raise an exception without unlocking the String.
The String is currently locked for the entire duration of a #sysread
method call. This does not seem to be necessary, as SSL_read() does not
require that the same buffer is specified when retrying. Locking the
String during each SSL_read() call should be sufficient.
https://github.com/ruby/openssl/commit/8f791d73f5
Diffstat (limited to 'include/ruby/io')
0 files changed, 0 insertions, 0 deletions
