You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Vandahl (Jira)" <ji...@apache.org> on 2020/04/13 14:52:00 UTC

[jira] [Resolved] (JCS-46) Allow TTL to be overridden for UDPDiscoverySender

     [ https://issues.apache.org/jira/browse/JCS-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Vandahl resolved JCS-46.
-------------------------------
    Fix Version/s: jcs-3.0
       Resolution: Fixed

> Allow TTL to be overridden for UDPDiscoverySender
> -------------------------------------------------
>
>                 Key: JCS-46
>                 URL: https://issues.apache.org/jira/browse/JCS-46
>             Project: Commons JCS
>          Issue Type: Improvement
>          Components: TCP Lateral Cache
>            Reporter: Lux Matic
>            Assignee: Thomas Vandahl
>            Priority: Minor
>             Fix For: jcs-3.0
>
>
> MulticastSocket defaults TTL for DatagramPackets to 1.  This limits usefulness of the feature.  There should be a way to override the TTL through configuration - i.e.: jcs.auxiliary.LTCP.attributes.UdpTTL=4
> Assuming m_ttlOverride is available as a member variable - the change boils down to setting the ttl before the packet is sent - something like:
>             m_localSocket.setTimeToLive(m_ttlOverride);
>             m_localSocket.send( packet );
> See MulticastSocket for more details.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)