JDK-6867350 : Time-To-Live setting functionality for non-multicast sockets
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6u10
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2009-07-31
  • Updated: 2011-02-16
  • Resolved: 2010-06-29
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
In the case of UDP multicast sockets, we can set their TTL (Time-To-Live) by using MulticastSocket#setTimeToLive.
As for normal TCP/UDP sockets, we have no way to set the TTL, including SocketOptions#setOption, or SocketChannel#setOption with StandardSocketOption.

JUSTIFICATION :
The TTL setting functionality is mandatory for realizing network analyzing tools, and software using some specific protocol like DTCP-IP (TCP packets must have a TTL value equal to or less than 3).

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I would like you to add either of the following:
- Socket#setTimeToLive and DatagramSocket#setTimeToLive methods,
- SocketOptions.IP_TTL field for SocketOptions#setOption, or
- StandardSocketOption.IP_TTL field for SocketChannel#setOption.

Comments
EVALUATION This is a duplicate of 4740586.
31-07-2009