
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
MINA 0.8 and a SocketConnector
|
|
| Resolution Date: |
03/Dec/05 08:59 AM
|
|
I try to do a reconnection filter, automaticly connecting and reconnecting a connector until it works.
if theinitial connector.connect(...) fail, and exception is thrown, but it's not caught by IoFilter chain. It's not really a bug I think but I added a simple fix :
in SocketConnector class in the connect method :
public IoSession connect( SocketAddress address, SocketAddress localAddress,
int timeout, IoHandler handler ) throws IOException
I changed :
....
if( request.exception != null )
{
ExceptionUtil.throwException( request.exception );
}
....
into
....
if( request.exception != null )
{
filters.exceptionCaught(null,request.exception );
ExceptionUtil.throwException( request.exception );
}
....
and now my filters get the exception normaly, perhaps it's an idea to add it to MINA 0.8 ?
|
|
Description
|
I try to do a reconnection filter, automaticly connecting and reconnecting a connector until it works.
if theinitial connector.connect(...) fail, and exception is thrown, but it's not caught by IoFilter chain. It's not really a bug I think but I added a simple fix :
in SocketConnector class in the connect method :
public IoSession connect( SocketAddress address, SocketAddress localAddress,
int timeout, IoHandler handler ) throws IOException
I changed :
....
if( request.exception != null )
{
ExceptionUtil.throwException( request.exception );
}
....
into
....
if( request.exception != null )
{
filters.exceptionCaught(null,request.exception );
ExceptionUtil.throwException( request.exception );
}
....
and now my filters get the exception normaly, perhaps it's an idea to add it to MINA 0.8 ?
|
Show » |
made changes - 03/Dec/05 08:59 AM
| Field |
Original Value |
New Value |
|
Assignee
|
|
Trustin Lee
[ trustin
]
|
|
Resolution
|
|
Duplicate
[ 3
]
|
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Fix Version/s
|
|
0.9
[ 11069
]
|
made changes - 05/Dec/05 04:52 PM
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
|