<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<META content="MSHTML 6.00.2900.5880" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=宋体 size=2>Dear All:</FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2>I find some thing confusing about ChannelFuture.
It seems the future of Channel.write() is not done even after the message
</FONT></DIV>
<DIV><FONT face=宋体 size=2>is received in another end of the
channel.</FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2>I'm writing a proxy in which there is some code
like:</FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2>ChannelFuture Send(Record record)//record from
server</FONT></DIV>
<DIV><FONT face=宋体 size=2>{</FONT></DIV>
<DIV><FONT face=宋体 size=2> ChannelFuture future =
channel.write(record);//channel to client</FONT></DIV>
<DIV><FONT face=宋体 size=2> return
future;<BR>} </FONT></DIV>
<DIV><FONT face=宋体 size=2><BR></FONT><FONT face=宋体 size=2>I find that the future
returned here is never turned done even after the client's messageReceived() is
called. </FONT></DIV>
<DIV><FONT face=宋体 size=2>Also, after await(5000) , the thread is not
isDone()..</FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2>I am using Netty 3.0.2. The channel is an
nio acceptedSocketChannel. Do you have some suggestions about my
question? </FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体
size=2> Thanks~</FONT></DIV></BODY></HTML>