CloseHandlers are not called when the remote connection closes
--------------------------------------------------------------
Key: JBREM-1295
URL:
https://issues.jboss.org/browse/JBREM-1295
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Kabir Khan
Assignee: David Lloyd
THis is for 3.2.0 which does not appear in the version list
Adding the following to org.jboss.remoting3.test.ChannelTestBase.java, the close handler
does not get called. We discussed on IRC a few days ago but no matter what I do to close
the channel this does not get called. Please provide a working example
@Test
public void testRemoteChannelClose() throws Exception {
final CountDownLatch closedLatch = new CountDownLatch(1);
sendChannel.addCloseHandler(new CloseHandler<Channel>() {
@Override
public void handleClose(Channel closed) {
closedLatch.countDown();
}
});
recvChannel.writeShutdown();
IoUtils.safeClose(recvChannel);
System.out.println("Waiting for closed");
closedLatch.await();
System.out.println("Closed");
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira