mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
merge revision(s) 34232:
------------------------------------------------------------------------ r34232 | naruse | 2012-01-08 08:04:20 +0900 (Sun, 08 Jan 2012) | 2 lines Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work sendmsg with pktinfo for link-local ipv6 addresses ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5879bd9c6a
commit
f63222ea19
1 changed files with 6 additions and 0 deletions
|
@ -290,6 +290,12 @@ class TestSocket < Test::Unit::TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
ip_addrs.each {|ai|
|
ip_addrs.each {|ai|
|
||||||
|
if /linux/ =~ RUBY_PLATFORM && ai.ip_address.include?('%') &&
|
||||||
|
(`uname -r`[/[0-9.]+/].split('.').map(&:to_i) <=> [2,6,18]) <= 0
|
||||||
|
# Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
|
||||||
|
# sendmsg with pktinfo for link-local ipv6 addresses
|
||||||
|
next
|
||||||
|
end
|
||||||
Addrinfo.udp(ai.ip_address, port).connect {|s|
|
Addrinfo.udp(ai.ip_address, port).connect {|s|
|
||||||
msg1 = "<<<#{ai.inspect}>>>"
|
msg1 = "<<<#{ai.inspect}>>>"
|
||||||
s.sendmsg msg1
|
s.sendmsg msg1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue