Forum: Ruby-core [ruby-trunk - Bug #7398][Open] Modify TestSSL#test_read_and_write to handle partial sysreads

Posted by zzak (Zachary Scott) (Guest)
on 2012-11-19 05:03
(Received via mailing list)
Issue #7398 has been reported by zzak (Zachary Scott).

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

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category: ext
Target version: 2.0.0
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
Posted by zzak (Zachary Scott) (Guest)
on 2012-11-19 05:04
(Received via mailing list)
Issue #7398 has been updated by zzak (Zachary Scott).


=begin
Description update:

((*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
----------------------------------------
Bug #7398: Modify TestSSL#test_read_and_write to handle partial sysreads
https://bugs.ruby-lang.org/issues/7398#change-33083

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category: ext
Target version: 2.0.0
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
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-12-21 14:21
(Received via mailing list)
Issue #7398 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Assigned


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

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category: ext
Target version: 2.0.0
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
Posted by mame (Yusuke Endoh) (Guest)
on 2013-02-18 16:32
(Received via mailing list)
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 <mame@tsg.ne.jp>
----------------------------------------
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.