Channel write seems to hang on exception.

infectedrhytms infectedrhythms at hotmail.com
Thu May 13 13:44:22 EDT 2010


I'm not sure what is goin on exactly, but the write doesn't get sent out.

My business handler is as follows...


public class MyHandler extends SimpleChannelHandler {

	public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
throws Exception {

		

		try
		{
			myFunction() // <-- Throws MyException which extends RuntImeException

		}
		catch(Throwable t)
		{
			// Error
		}
		finally
		{
			ChannelFuture cf = ch.write("This is the response"); // <-- Gets called
but client still waiting for response....
			cf.addListener(ChannelFutureListener.CLOSE);
		}

	}
}

ExceptionCaught is not implemented...

So is it getting stuck up the pipeline somewhere? If there is no exception
the write works perfectly...




-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Channel-write-seems-to-hang-on-exception-tp5047244p5047244.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list