-
-
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
Firefox Offline Mode Reconnect Issues #962
Comments
The status from the request is 'aborted' and perhaps this causes a maximum retry to occur. One would expect the client to back-off but continue to retry if the user disables connectivity from the browser. Maybe there is a way to distinguish between disconnects from network, server, and user initiated. |
I also noticed this, but not sure if it is intentional. Sadly the error |
How about not incrementing the retry if the response code is 'aborted'? |
@iaeubi: Can you elaborate? First time someone complains about that. @Flamenco Can you elaborate? You means you reload the page or you close the connection manually? |
I tried to do this from clientcode but the callbacks are not that To solve this, atmosphere should use a more robust and more semantic
(I just named the events semantically, so just keep them as examples...) Hope this helps in understand the issue :-) |
(1) You can configure a timeout between reconnection => that does exactly what you want when you say:
Just set a timeout and a bigger value that 5 for reconnecting, and you will have exactly what you want.
I disagree. A server or and application can decide to return a 404 on websocket for whatever reason. What can be improved in atmosphere is to have a property that prevent downgrade and instead fail as it is. But you can already do that by closing the request inside a onTransportFailure I like the onConnectionLost, that could be implemented on top of the onError current behavior. Please file another issue so I will work on it for 1.1. Thanks! |
e.g. the onError is invoked multiple times and so the client can't just |
Using firefox-19-mac:
I have a non-upgraded stream or long-poll connection to either a tomcat or jetty server. When I select in the file menu, the polling request is disconnected, and no more attempts to reconnect happen, even after deselecting the feature.
However, if I pull the Ethernet plug, or disable the network interface, and then reconnect, my comet connection continues to work.
The text was updated successfully, but these errors were encountered: