mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/socket/test_nonblock.rb: increase buffer sizes to OpenBSD limits
* test/socket/test_nonblock.rb: increase buffer sizes to OpenBSD limits. Thanks to Jeremy Evans <code@jeremyevans.net> [ruby-core:70058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3af9cea88
commit
04b7a80131
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Jul 21 16:18:48 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* test/socket/test_nonblock.rb: increase buffer sizes
|
||||||
|
to OpenBSD limits. Thanks to Jeremy Evans <code@jeremyevans.net>
|
||||||
|
[ruby-core:70058]
|
||||||
|
|
||||||
Tue Jul 21 16:08:53 2015 Eric Wong <e@80x24.org>
|
Tue Jul 21 16:08:53 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* load.c (ruby_dln_librefs): make static
|
* load.c (ruby_dln_librefs): make static
|
||||||
|
|
|
@ -299,7 +299,7 @@ class TestSocketNonblock < Test::Unit::TestCase
|
||||||
|
|
||||||
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
|
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
|
||||||
def test_sendmsg_nonblock_seqpacket
|
def test_sendmsg_nonblock_seqpacket
|
||||||
buf = '*' * 63
|
buf = '*' * 4096
|
||||||
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
||||||
assert_raise(IO::WaitWritable) do
|
assert_raise(IO::WaitWritable) do
|
||||||
loop { s1.sendmsg_nonblock(buf) }
|
loop { s1.sendmsg_nonblock(buf) }
|
||||||
|
@ -310,7 +310,7 @@ class TestSocketNonblock < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_sendmsg_nonblock_no_exception
|
def test_sendmsg_nonblock_no_exception
|
||||||
buf = '*' * 63
|
buf = '*' * 4096
|
||||||
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
||||||
n = 0
|
n = 0
|
||||||
Timeout.timeout(60) do
|
Timeout.timeout(60) do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue