[
https://issues.jboss.org/browse/JGRP-1508?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-1508:
--------------------------------
Another use case (testCancellationByClosingChannel()) is that - when a channel is closed
*after* the request has been sent - the call will not return, but block until it runs into
the timeout.
SOLUTION: when a channel is closed, send an event up the stack to notify
MessageDispatcher. The latter then has to reset all pending requests, so that the callers
are unblocked.
MessageDispatcher allows sending messages after the channel has been
closed
---------------------------------------------------------------------------
Key: JGRP-1508
URL:
https://issues.jboss.org/browse/JGRP-1508
Project: JGroups
Issue Type: Bug
Affects Versions: 3.0.13, 3.1
Reporter: Dan Berindei
Assignee: Bela Ban
Fix For: 3.0.14, 3.2
Channel.send() throws an exception if the channel is already closed, but
MessageDispatcher goes around this and doesn't throw an exception immediately.
Instead, if castMessage() was synchronous, it blocks and it times out after the request
timeout expires.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira