Hi Trustin,
Thx for the reply. We need to be able to change the timeout value at
runtime via config bean. Does IoSession.setIdleTime(IdleStatus,
idleTime) calls java.net.Socket.setSoTimeout() - which takes millisecond
according to the javadoc. what limits MINA to use only seconds?
I've also having problems with connect timeout and retry with MINA 1.1.0
code base. I've set ( ( IoConnectorConfig )
connector.getDefaultConfig()).setConnectTimeout( 2 ); for 2 second. And
here are the problems:
1. I saw a ConnectException thrown by sun.nio.SocketChannelImpl during
MINA's SocketConnector.processSessions()'s invocation to
SocketChannel.finishConnect(). The ConnectException is eventually set
to ConnectionRequest, but I don not see how it is propgated to either of
- the caller of Connector.connect
- my IoHandler
- my IoServiceListener
How and where does MINA deliver this Connect timeout exception to
application? Without this info, How do I retry?
2. the SocketConnector stuck in Running mode, but no event to IoHandler
at all. The JVM appears "hung"
3. which I also need to lower to 800ms (changable at runtime via config
bean).
Can you advise on above questions?
Thanks very much in advance,
Chuck