-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
[atmosphere.js] long-polling issue with jQuery Atmosphere 0.9 RC3 #274
Comments
Integrated. Please try it and let me know if you can still reproduce (you haven't mention the browser used). |
Thank you, but the bug is still there. I test it with Google Chrome. |
Hum...I need a way to reproduce as I can't reproduce right now. Can you describe a quick way to reproduce? |
Yes. This is the pattern I use: socket.unsubscribe(); socket.unsubscribe(); socket.unsubscribe(); When socket.unsubscribe() is called, the previous request is aborted. However after the timeout that is specified in the subscribe() passes, it starts another request. |
Ok, I've just tested with var subSocket = socket.subscribe(request);
socket.unsubscribe();
subSocket = socket.subscribe(request);
socket.unsubscribe();
subSocket = socket.subscribe(request);
socket.unsubscribe();
subSocket = socket.subscribe(request);
socket.unsubscribe();
subSocket = socket.subscribe(request);
socket.unsubscribe();
subSocket = socket.subscribe(request); I'm using 0.9-SNAPSHOT (latest version) so and I don't see any reconnect issue. I'm using Firefox and test with the atmosphere-chat sample (atmosphere/sample/chat/) |
OK I just find a way to reproduce. |
OK fixed, thanks a lot! |
The bug is gone! Thank you! :) |
There is a long-polling issue with the latest jQuery plugin. When call the socket.unsubscribe() the HTTP request is aborted, but a new one is initiated after the timeout passes. So, if you call for example 10 times unsubscribe() and then subscribe(), you will have 10 simultaneous HTTP long-poll connections.
The text was updated successfully, but these errors were encountered: