Timeouts without 3.1

infectedrhythms voodoo at videotron.ca
Fri Jun 19 15:53:51 EDT 2009


So far I see a writeTimeoutMillis in the ChannelConfig docs.


How do I go about timeout a client that did not send all the bytes in time
to the server?

What happens if the client doesn't send all the bytes to complete the
message and how should it be handled on the server?

public class MyHeaderFrameDecoder extends FrameDecoder {

	protected Object decode(ChannelHandlerContext ctx, Channel channel,
ChannelBuffer buf) throws Exception {

		// Make sure if the length field was received.
		if(buf.readableBytes() < headerSize) {
			return null;
		}
...

We have a header now read for the message...

}
-- 
View this message in context: http://n2.nabble.com/Timeouts-without-3.1-tp3121799p3121799.html
Sent from the Netty User Group mailing list archive at Nabble.com.




More information about the netty-users mailing list