[jira] Created: (JCS-46) Allow TTL to be overridden for UDPDiscoverySender
"Lux Matic (JIRA)" <[email protected]> Thu, 3 Jul 2008 16:07:45 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.turbine.jcs.devel |
|---|---|
| Message-ID | <1713891203.1215126465011.JavaMail.jira@brutus> |
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.