Timeouts without 3.1

infectedrhythms voodoo at videotron.ca
Fri Jun 19 17:00:53 EDT 2009


There's no other way but to upgrade to 3.1?


infectedrhythms wrote:
> 
> I can't use none GA software. When is 3.1 expected to be out?
> 
> And is there a solution for 3.0?
> 
> 
> Trustin Lee wrote:
>> 
>> Perhaps you could try ReadTimeoutHandler in
>> org.jboss.netty.handler.timeout?  Please note
>> ChannelConfig.writeTimeoutMillis has been deprecated and you should use
>> WriteTimeoutHandler.
>> 
>> HTH,
>> Trustin
>> 
>> On 2009-06-20 오전 4:53, infectedrhythms wrote:
>>> 
>>> 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...
>>> 
>>> }
>> 
>> 
>> -- 
>> — Trustin Lee, http://gleamynode.net/
>> 
>> 
>>  
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>> 
>> 
> 
> 

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





More information about the netty-users mailing list