You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by "Lux Matic (JIRA)" <ji...@apache.org> on 2008/07/04 01:07:45 UTC

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

Allow TTL to be overridden for UDPDiscoverySender
-------------------------------------------------

                 Key: JCS-46
                 URL: https://issues.apache.org/jira/browse/JCS-46
             Project: JCS
          Issue Type: Improvement
          Components: TCP Lateral Cache
            Reporter: Lux Matic
            Assignee: Aaron Smuts
            Priority: Minor


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


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

Posted by "Suresh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCS-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845467#action_12845467 ] 

Suresh commented on JCS-46:
---------------------------

This is turning out to be a serious limitation for us, can you guys please add this in ?. 

Thanks,
Suresh

> Allow TTL to be overridden for UDPDiscoverySender
> -------------------------------------------------
>
>                 Key: JCS-46
>                 URL: https://issues.apache.org/jira/browse/JCS-46
>             Project: JCS
>          Issue Type: Improvement
>          Components: TCP Lateral Cache
>            Reporter: Lux Matic
>            Assignee: Aaron Smuts
>            Priority: Minor
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


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

Posted by "Aaron Smuts (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCS-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619095#action_12619095 ] 

Aaron Smuts commented on JCS-46:
--------------------------------

We will have to add this to the  UDPDiscoverySender after we create the socket.

This will require changing the constructor to take in another variable.

    public UDPDiscoverySender( String host, int port )
        throws IOException
    {
        try
        {
            m_localSocket = new MulticastSocket();

> Allow TTL to be overridden for UDPDiscoverySender
> -------------------------------------------------
>
>                 Key: JCS-46
>                 URL: https://issues.apache.org/jira/browse/JCS-46
>             Project: JCS
>          Issue Type: Improvement
>          Components: TCP Lateral Cache
>            Reporter: Lux Matic
>            Assignee: Aaron Smuts
>            Priority: Minor
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org