[
https://jira.jboss.org/jira/browse/JGRP-1087?page=com.atlassian.jira.plug...
]
Richard Achmatowicz commented on JGRP-1087:
-------------------------------------------
I wrote a small program which allocated sockets, closed them and the reallocated them on
the same port, 10 times in a row.
There is no problem doing this on Fedora. So the problem had to be somewhere in the
JGroups code.
One problem was that the following was being called:
ct1 = new ConnectionTable(...) ;
ct1.start() ;
...
ct2 = new ConnectionTableNIO(..., false) ;
ct2.start() ;
Ports were not available because in the case of ConnectionTable, start() is called within
the constructor, so that we were effectively calling it a second time. So removing the
call to ct1.start() fixed that problem.
On the other hand, for ConnectionTableNIO, because we pass a parameter false at the end of
the signature, it means that start() is not called within the constructoir. So that
particular invocation has to stay.
Even with these changes, we were still seewing the above exception when running the test
testStopConnection(). I put in a very small 100 ms delay between each test, and thats eems
to fix the problem. This probably needs further investigation to see why my test program
works fine and always can reuse its port, whereas ConnectionTable seemingly cannot.
Release JGroups 2.4.7
---------------------
Key: JGRP-1087
URL:
https://jira.jboss.org/jira/browse/JGRP-1087
Project: JGroups
Issue Type: Task
Affects Versions: 2.4.7
Reporter: Richard Achmatowicz
Assignee: Richard Achmatowicz
Fix For: 2.4.7
This release is required for the EAP 4.2 and 4.3 CP releases, and is primarily a bug fix
release.
The release notes show the following bugs and tasks completed for this release:
Release Notes - JGroups - Version 2.4.7
** Bug
* [JGRP-549] - ConnectionTable: spurious Connection instances on concurrent connects
* [JGRP-956] - Binding to mcast address in UDP.java is not working on Linux with
IPv6
* [JGRP-967] - Deadlock in FD_SOCK
* [JGRP-981] - Wrong view with concurrent startup
* [JGRP-984] - JGroups can not parse IPV6 literals in TCPPING protocol configuration
* [JGRP-990] - Grammatical Error in log message: I'm being am suspected.
* [JGRP-1000] - COMPRESS corrupts some messages
* [JGRP-1060] - NAKACK has inconsistent internal state after concurrent node startup
** Task
* [JGRP-982] - Extend linux method of creating multicast socket to HP-UX
--
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