google-code-export / rocket-gwt

Automatically exported from code.google.com/p/rocket-gwt
1 stars 1 forks source link

Comet problems with IE - leaving page before comet registration finishes #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start comet connection with servlet.
2. Leave page before registration finishes or first data is sent from comet.

What is the expected output? What do you see instead?

Nothing bad should happen, connection should be broken and polling should
stop. What happens instead is that I get a call to "public void
onFailure(final Throwable cause)" reporting that client is unable to
connect with the server.

What version of the product are you using? On what operating system?

This happens for me only in IE 7, in firefox everything is fine.

Please provide any additional information below.

Currently I bypass it by just ignoring all errors in onFailure which is not
the best solutions...

Original issue reported on code.google.com by Marcin.A...@gmail.com on 18 Nov 2008 at 1:41

GoogleCodeExporter commented 9 years ago
What other behaviour do you suggest ?

Original comment by miroslav...@gmail.com on 2 Dec 2008 at 8:35

GoogleCodeExporter commented 9 years ago
No sure... in normal conditions you still would like to be notified if sth fails
however when the connection breaks when leaving the page ideally you would like 
it to
be treated as normal situation - and ignored. However I realise that it may be
impossible to detect it so unless you find a tricky solution I suggest it 
should stay
as it is now - it only affects implementations which e.g. display message box 
when
onFailure is called (however I imagine lots of people do this), if errors are 
handled
in a different fashion (e.g. error message printed on page) that does not bock 
the
user - all will work fine. Also it might be worth documenting this behaviour.

Original comment by Marcin.A...@gmail.com on 2 Dec 2008 at 11:57