netty about write()
mumuyu99
99yangyiqiang99 at 163.com
Fri May 28 09:32:38 EDT 2010
Hi
I have a problem on write !
Some times ,I want to know the write is success or no!
So ,I write cord :
ChannelFuture future=_channel.write(bytes);
future.addListener(new ChannelFutureListener() {
public void operationComplete(ChannelFuture future) {
System.out.println("future.isSuccess()="+future.isSuccess());
if(!future.isSuccess()){
System.out.println("send future no success!");
_channel.close();
}
}
});
When some clients shut down network by pull line, My cord also can'not
println
'send future no success!'
Why? Thanks!
Daniel
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/netty-about-write-tp5113065p5113065.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list