Sha256: df0aa84cc8366fcfe5c251766fcc7744652d5f66c0533fe0a05bf398fc25f952
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
describe "partially closable sockets", :shared => true do specify "if the write end is closed then the other side can read past EOF without blocking" do @s1.write("foo") @s1.close_write @s2.read("foo".size + 1).should == "foo" end specify "closing the write end ensures that the other side can read until EOF" do @s1.write("hello world") @s1.close_write @s2.read.should == "hello world" end end
Version data entries
4 entries across 4 versions & 1 rubygems