[前][次][番号順一覧][スレッド一覧]

ruby-changes:22398

From: naruse <ko1@a...>
Date: Mon, 6 Feb 2012 21:32:25 +0900 (JST)
Subject: [ruby-changes:22398] naruse:r34447 (ruby_1_9_3): merge revision(s) 34232:

naruse	2012-02-06 21:32:16 +0900 (Mon, 06 Feb 2012)

  New Revision: 34447

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34447

  Log:
    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
    ------------------------------------------------------------------------

  Modified files:
    branches/ruby_1_9_3/test/socket/test_socket.rb

Index: ruby_1_9_3/test/socket/test_socket.rb
===================================================================
--- ruby_1_9_3/test/socket/test_socket.rb	(revision 34446)
+++ ruby_1_9_3/test/socket/test_socket.rb	(revision 34447)
@@ -290,6 +290,12 @@
         }
 
         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|
             msg1 = "<<<#{ai.inspect}>>>"
             s.sendmsg msg1

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]