-
1. Re: Disconnected browser causes Errai to repeatively throws QueueUnavailableException
jayd.lowrider Sep 6, 2011 3:47 PM (in response to jayd.lowrider)I've done a work around with conversation message on the server where replyrepeating is within 2 seconds. Since the MessageQueue is null on browser close, I've killed the repeating Async task by setting cancel(true), thereby stopping the resend.
Should the ServerMessageBus handle this? How does the server know if the request from the browser had been cut off? There should be a way for Java NIO, to tell the server the browser had been cut other than let the session die.
Kindly advice.
Melvin
-
2. Re: Disconnected browser causes Errai to repeatively throws QueueUnavailableException
jayd.lowrider Sep 6, 2011 5:56 PM (in response to jayd.lowrider)This workaround only works with single browser connection. I get QueueUnavailableException from multiple browser, I'll raise a bug, looking at the code, there is no way for it to remove the message queue from the Workers.
-
3. Re: Disconnected browser causes Errai to repeatively throws QueueUnavailableException
cbrock Sep 6, 2011 6:03 PM (in response to jayd.lowrider)Yes, we don't have a way to notify the server a client has disconnected other than experiencing a failure. This is a limit of COMET and long polling. Our WebSockets support will have the ability to detect a disconnect in real-time. But what you're describing is really tricky to do, which is why we use a heart beat model to detect if the client has died.
-
4. Re: Disconnected browser causes Errai to repeatively throws QueueUnavailableException
patrykxes Oct 8, 2011 4:33 PM (in response to cbrock)Hello Mike
I'm newbie.
Can you give example about heartbeat model in errai ?