Issue #7398 has been updated by Hiroshi SHIBATA.

Status changed from Assigned to Closed
% Done changed from 0 to 100

Applied in changeset r46164.

----------
* test/openssl/test_pair.rb: Modify TestSSL#test_read_and_write
  to handle partial sysreads. [Bug #7398][ruby-core:49563]
* test/openssl/test_ssl.rb: ditto.

----------------------------------------
Bug #7398: Modify TestSSL#test_read_and_write to handle partial sysreads
https://bugs.ruby-lang.org/issues/7398#change-46908

* Author: Zachary Scott
* Status: Closed
* Priority: Normal
* Assignee: Martin Bosslet
* Category: ext
* Target version: next minor
* ruby -v: 2.0.0
* Backport: 
----------------------------------------
=begin
from github: https://github.com/ruby/ruby/pull/204

((*SSLSocket#sysread can return fewer bytes than you request. This test does client reads and writes and server reads and writes concurrently, which means on a parallel-threaded implementation like JRuby there's a chance the client side will see partial data come from sysread.

My change here ensures that the sysread has read everything written before doing comparisons, allowing for partial sysread results.*))
=end

---Files--------------------------------
openssl_test_read_and_write.patch (2.29 KB)


-- 
https://bugs.ruby-lang.org/