diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2021-08-30 18:55:10 +0900 |
|---|---|---|
| committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-10-16 18:34:35 +0900 |
| commit | daeb914a525dd7b9faf6ba9f4596deafa22b065a (patch) | |
| tree | 0e02886c358592e271364b6cc987275a1305dc6e /include/ruby/internal/arithmetic | |
| parent | 5828807626b91a5d8036f9c351f8844d724f8804 (diff) | |
[ruby/openssl] ssl: temporary lock string buffer while reading
Similarly to SSLSocket#syswrite, the blocking SSLSocket#sysread allows
context switches. We must prevent other threads from modifying the
string buffer.
We can use rb_str_locktmp() and rb_str_unlocktmp() to temporarily
prohibit modification of the string.
https://github.com/ruby/openssl/commit/d38274949f
Diffstat (limited to 'include/ruby/internal/arithmetic')
0 files changed, 0 insertions, 0 deletions
