summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-08-30 18:55:10 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-10-16 18:34:35 +0900
commitdaeb914a525dd7b9faf6ba9f4596deafa22b065a (patch)
tree0e02886c358592e271364b6cc987275a1305dc6e /spec/ruby/core
parent5828807626b91a5d8036f9c351f8844d724f8804 (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 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions