Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BA5D105B8 for ; Fri, 31 May 2013 10:01:49 +0000 (UTC) Received: (qmail 10327 invoked by uid 500); 31 May 2013 10:01:49 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 9713 invoked by uid 500); 31 May 2013 10:01:47 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 9683 invoked by uid 99); 31 May 2013 10:01:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 10:01:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-ob0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 10:01:40 +0000 Received: by mail-ob0-f177.google.com with SMTP id ta17so2661224obb.36 for ; Fri, 31 May 2013 03:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=T2DxREIk8yzwdGV5vaooTFJg+xoALE4xXYhQdkKcYmM=; b=LE0NhFana+lUD28/qxeCSvr0AS+RvpceGMlsMtBmWq2dyZN0MCrVoQVDDVQF1y8tvM upYy5jt5BHORuuw4OsTv3G45Gtkky5dAyAlPUd9D1HUNVYRyqE/xF/BM/eOic1JOTX6i uldEAxmEHA/id5wqJIQOJUgHIw20is2Fyc4a7Vl4YywaZ5MEdDzff+2in4a/Ww/Yk1kw +NeZSKcx3u5DAiecvX9o0TrQBTSRwCATwBjKM0m46pZGTTC54kM4ARVzWlXeKVAHzQIc 3RprcZcAJwXAEoGd8VIY1Z2pnYbl/K2riVqKaLqw85zaqL9Cq/qIbztmaH6I7i9+zFlh CbSQ== MIME-Version: 1.0 X-Received: by 10.60.41.39 with SMTP id c7mr4343894oel.26.1369994479138; Fri, 31 May 2013 03:01:19 -0700 (PDT) Received: by 10.76.12.41 with HTTP; Fri, 31 May 2013 03:01:19 -0700 (PDT) In-Reply-To: <51A86A9C.2020408@apache.org> References: <20130530201515.CB0F62388980@eris.apache.org> <51A836D3.9040009@kippdata.de> <51A86A9C.2020408@apache.org> Date: Fri, 31 May 2013 14:01:19 +0400 Message-ID: Subject: Re: svn commit: r1487993 - /tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2013/5/31 Mark Thomas : > On 31/05/2013 06:36, Rainer Jung wrote: >> On 30.05.2013 22:15, markt@apache.org wrote: >>> Author: markt >>> Date: Thu May 30 20:15:15 2013 >>> New Revision: 1487993 >>> >>> URL: http://svn.apache.org/r1487993 >>> Log: >>> Finally figured out how t get multicast working locally on my mac. Document it. >>> >>> Modified: >>> tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java >>> >>> Modified: tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java >>> URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java?rev=1487993&r1=1487992&r2=1487993&view=diff >>> ============================================================================== >>> --- tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java (original) >>> +++ tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java Thu May 30 20:15:15 2013 >>> @@ -24,6 +24,23 @@ import java.net.UnknownHostException; >>> /** >>> * A simple multicast test that replicates the core elements of Tomcat's >>> * multicast membership. If this works then multicast membership should work. >>> + * Useful notes for various operating systems follow.

>>> + * OSX >>> + *

    >>> + *
  • Multicast is not routed by default.
  • >>> + *
  • Check if multicast is routed by looking at the routing table via >>> + * netstat -nr. If there is no line the output for 228.0.0.4 >>> + * then multicast will not work.
  • >>> + *
  • Add a route for multicast using >>> + * sudo route -nv add -net 228.0.0.4 -interface en0
  • >>> + *
  • The firewall blocks multicast bewteen processes on the local machine so >>> + * you will need to disable the OSX forewall before the test below will >>> + * work.
  • >>> + *
>> >> Shouldn't the multicast route be for network 224.0.0.0 with netmask >> 240.0.0.0? > > For the general case. > >> I think the above is just an example multicast address and typical >> system will not have a route for that one, but could and should have a >> route for multicast in general (224.0.0.0/240.0.0.0). > > OSX doesn't have any multicast routes present by default. The notes > could certainly be amended to reflect the more general case. > Maybe add this to the "(7) Tests" section of BUILDING.txt? At least a brief "see TesterMulticast.java". This class is not part of active testsuite though. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org