[JBoss JIRA] Created: (NETTY-248) ChannelFuture of connect() operation is not notified if a user closes the channel explicitly.
Trustin Lee (JIRA)
jira-events at lists.jboss.org
Mon Nov 16 00:39:29 EST 2009
ChannelFuture of connect() operation is not notified if a user closes the channel explicitly.
---------------------------------------------------------------------------------------------
Key: NETTY-248
URL: https://jira.jboss.org/jira/browse/NETTY-248
Project: Netty
Issue Type: Bug
Components: Transport
Reporter: Trustin Lee
Assignee: Trustin Lee
Fix For: 3.2.0.ALPHA1
If a user closes the channel whose connection attempt is in progress, the ChannelFuture associated with the connection attempt is never notified. That is, the following code never finishes:
ChannelFuture cf = bootstrap.connect();
cf.getChannel().close();
cf.awaitUninterruptibly(); // never returns
The workaround is to cancel the connection attempt before closing the channel.
ChannelFuture cf = bootstrap.connect();
cf.cancel();
cf.getChannel().close();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the netty-dev
mailing list