[jboss-jira] [JBoss JIRA] (JGRP-1780) UDP: remove invocation of DatagramSocket.isClosed()
Bela Ban (JIRA)
issues at jboss.org
Mon Jan 20 07:16:29 EST 2014
[ https://issues.jboss.org/browse/JGRP-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban resolved JGRP-1780.
----------------------------
Resolution: Done
> UDP: remove invocation of DatagramSocket.isClosed()
> ---------------------------------------------------
>
> Key: JGRP-1780
> URL: https://issues.jboss.org/browse/JGRP-1780
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 3.5
>
>
> In UDP, we check whether a datagram socket is closed by invoking {{DatagramSocket.isClosed()}} for every message that's sent. Flight recorder showed that this creates a bit of lock contention as isClosed() is synchronized.
> SOLUTION:
> * Simply remove the check. If a socket is closed we'll catch the exception anyway and handle it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list