From: "mame (Yusuke Endoh)" Date: 2013-02-19T00:32:07+09:00 Subject: [ruby-core:52475] [ruby-trunk - Bug #7398] Modify TestSSL#test_read_and_write to handle partial sysreads Issue #7398 has been updated by mame (Yusuke Endoh). Target version changed from 2.0.0 to next minor Just an issue of test. -- Yusuke Endoh ---------------------------------------- Bug #7398: Modify TestSSL#test_read_and_write to handle partial sysreads https://bugs.ruby-lang.org/issues/7398#change-36544 Author: zzak (Zachary Scott) Status: Assigned Priority: Normal Assignee: MartinBosslet (Martin Bosslet) Category: ext Target version: next minor ruby -v: 2.0.0 =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 -- http://bugs.ruby-lang.org/