From 2.6.7 Gossip Router Code:
/** Time (in millis) for setting SO_LINGER on sockets returned from accept(). 0 means don't set SO_LINGER */
private long linger_timeout=2000L;
...snip...
if(linger_timeout > 0)
{ int linger=Math.min(1, (int)(linger_timeout / 1000)); sock.setSoLinger(true, linger); }This means that the socket linger timeout will always be 1 regardless of what you set exception when a millisecond value of less than one second is specified which isn't valid for a socket linger timeout anyway. Math.max should likely be used instead.
- is incorporated by
-
JBPAPP-1540 Provide Defaults & Configuration Options For GossipRouter/TCPGOSSIP SoTimeout, SoLinger, and Backlog
- Resolved