diff options
-rw-r--r-- | test/mgmt.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mgmt.rb b/test/mgmt.rb index 041d13d..9b3c7a3 100644 --- a/test/mgmt.rb +++ b/test/mgmt.rb @@ -164,6 +164,18 @@ class TestMgmt < Test::Unit::TestCase assert_equal "/missing -1\r\n", @client.gets end + def test_trickle_too_large + @client.write "size /" + Thread.pass + # this should hit the 64K limit + assert_raises(Errno::EPIPE, Errno::ECONNRESET) do + loop do + @client.write("12345") + Thread.pass + end + end + end + def test_client_eof t("/missing -1", "size /missing") @client.close |