Skip to content

Commit 04b7a80

Browse files
author
normal
committed
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 <[email protected]> [ruby-core:70058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent e3af9ce commit 04b7a80

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Tue Jul 21 16:18:48 2015 Eric Wong <[email protected]>
2+
3+
* test/socket/test_nonblock.rb: increase buffer sizes
4+
to OpenBSD limits. Thanks to Jeremy Evans <[email protected]>
5+
[ruby-core:70058]
6+
17
Tue Jul 21 16:08:53 2015 Eric Wong <[email protected]>
28

39
* load.c (ruby_dln_librefs): make static

test/socket/test_nonblock.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def test_recvfrom_nonblock_no_exception
299299

300300
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
301301
def test_sendmsg_nonblock_seqpacket
302-
buf = '*' * 63
302+
buf = '*' * 4096
303303
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
304304
assert_raise(IO::WaitWritable) do
305305
loop { s1.sendmsg_nonblock(buf) }
@@ -310,7 +310,7 @@ def test_sendmsg_nonblock_seqpacket
310310
end
311311

312312
def test_sendmsg_nonblock_no_exception
313-
buf = '*' * 63
313+
buf = '*' * 4096
314314
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
315315
n = 0
316316
Timeout.timeout(60) do

0 commit comments

Comments
 (0)