[jboss-jira] [JBoss JIRA] Commented: (JGRP-866) Socket.setSoLinger(): change from seconds to milliseconds

Jimmy Wilson (JIRA) jira-events at lists.jboss.org
Tue Jan 6 16:51:04 EST 2009


    [ https://jira.jboss.org/jira/browse/JGRP-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12445084#action_12445084 ] 

Jimmy Wilson commented on JGRP-866:
-----------------------------------

RouterStub and GossipRouter are the only classes that have setSoLinger set incorrectly in Branch_2_4.

RouterStub will have the linger timeout set to 5 instead of 500.

GossipRouter will receive the full 2.6 backport where timeouts are configurable.

> Socket.setSoLinger(): change from seconds to milliseconds
> ---------------------------------------------------------
>
>                 Key: JGRP-866
>                 URL: https://jira.jboss.org/jira/browse/JGRP-866
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.4.4
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 2.4.5
>
>
> We mistakenly assumed that the argument to setSoLinger() was millisconds, but it is seconds. So in some cases we have a value of 500, which is 500 seconds, so close to useless.
> Change this to use seconds, e.g. a value of 2.
> Better: back port the 2.6 solution where we make socket close, read and connect timeouts configurable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list