]
RH Bugzilla Integration updated REMJMX-86:
------------------------------------------
Bugzilla References:
RemotingConnector & VersionedConectionFactory need configurable
connection, channel & versioned connection timeouts
--------------------------------------------------------------------------------------------------------------------
Key: REMJMX-86
URL:
https://issues.jboss.org/browse/REMJMX-86
Project: Remoting JMX
Issue Type: Bug
Components: Connection
Affects Versions: 2.0.0.Final
Reporter: Mustafa Musaji
Assignee: Brad Maxwell
Fix For: 1.1.3.Final, 2.0.1.CR1
In [1] we have the following snippet of code which has a hardcoded value of 5 seconds.
{code:title=RemotingConnector.java}
// Now open the channel
final IoFuture<Channel> futureChannel = connection.openChannel(serviceName,
OptionMap.EMPTY);
IoFuture.Status result = futureChannel.await(5, TimeUnit.SECONDS);
if (result == IoFuture.Status.DONE) {
channel = futureChannel.get();
} else if (result == IoFuture.Status.FAILED) {
throw new IOException(futureChannel.getException());
} else {
throw new RuntimeException("Operation failed with status " +
result);
}
{code}
This should be a system property or the default value should be raised.
[1]
https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jbo...