-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broadcastable.broadcast() does not have timeout #1395
Comments
Use for `broadcaster.broadcast(..) retuns a Future, so use the appropriate .get(). Is it a method in Atmosphere you are referring to? |
Hey, Jeanfrancois, This is an Atmosphere method, but you are right, you did not use it internally in the latest code. I happen to find this public method and used it in my implementation, and did cause thread congestion. Just think it will be nice to remove this since another person like me may also run into the same issue. |
I would be interested to learn how this is causing thread congestion...noirmally the thread will be unlocked once the message has been delivered. |
Just noticed your comment here. A wild guess, should the "future" member be
Based on the JVM threading model, both threads have a reference to an Entry
On Mon, Dec 9, 2013 at 7:10 AM, Jeanfrancois Arcand <
|
Never mind, it is a blockingqueue in the middle. But I suspect the initial countdown number might be an issue, it is based on the resources.size(). Can it be different from the actual countdowns? See the code from 1.0.18,
|
The following method implementation does not have a timeout and causes the thread hanging forever in case the underneath future does not return as expected.
It will be nice to provide a timeout and potential a re-try logic in this unexpected case.
The text was updated successfully, but these errors were encountered: