mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check net.core.wmem_default and max instead of tcp
https://travis-ci.org/ruby/ruby/jobs/395416137 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
38d0219ab0
commit
fab030c2c1
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ module TestNetHTTP_version_1_1_methods
|
||||||
|
|
||||||
th = Thread.new do
|
th = Thread.new do
|
||||||
err = !windows? ? Net::WriteTimeout : Net::ReadTimeout
|
err = !windows? ? Net::WriteTimeout : Net::ReadTimeout
|
||||||
assert_raise(err, "experimental:sysctl: #{`sysctl net.ipv4.tcp_wmem`rescue nil}") { conn.post('/', "a"*5_000) }
|
assert_raise(err, "experimental:sysctl: #{`sysctl net.core.wmem_default`rescue nil} #{`sysctl net.core.wmem_max`rescue nil}") { conn.post('/', "a"*5_000) }
|
||||||
end
|
end
|
||||||
assert th.join(10)
|
assert th.join(10)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue