ChannelFuture of Channel.write() not finished...

Trustin Lee (이희승) trustin at gmail.com
Thu Oct 15 09:22:34 EDT 2009


Hi Zhang,

Could you upgrade to 3.1.5 and let me know if the bug still exists?
3.0 has been deprecated.

— Trustin Lee, http://gleamynode.net/



2009/10/15 Zhang Yuan <zhangyuan_cau at hotmail.com>:
> Dear All:
>
> I find some thing confusing about ChannelFuture. It seems the future of
> Channel.write() is not done even after the message
> is received in another end of the channel.
>
> I'm writing a proxy in which there is some code like:
>
> ChannelFuture Send(Record record)//record from server
> {
>     ChannelFuture future = channel.write(record);//channel to client
>     return future;
> }
> I find that the future returned here is never turned done even after the
> client's messageReceived() is called.
> Also, after await(5000) , the thread is not isDone()..
>
> I am using Netty 3.0.2.  The channel is an nio acceptedSocketChannel. Do you
> have some suggestions about my question?
>
>
>                                                                                                 Thanks~
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
>



More information about the netty-users mailing list