Skip to content
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

onDisconnect is not called in firefox for sse transport until firefox is fully closed #565

Closed
xenster86 opened this issue Aug 20, 2012 · 1 comment
Labels

Comments

@xenster86
Copy link

Atmosphere 1.0.0.beta5, tomcat 7.0.26, NIO transport, firefox 14.0.1

  1. Open jquery-pubsub sample.
  2. Select sse transport and send some messages.
  3. Close the firefox tab. OnDisconnect is not printed in logs:
    11:22:43.998 [http-nio-8080-exec-4] INFO o.a.samples.pubsub.EventsLogger - onSuspend(): 0:0:0:0:0:0:0:1:64739
    11:22:45.125 [Atmosphere-AsyncWrite-0] INFO o.a.samples.pubsub.EventsLogger - onBroadcast(): 22 sent trying to use sse
  4. Close the firefox process. OnDisconnect is printed in logs:
    11:23:00.729 [http-nio-8080-exec-1] DEBUG o.a.cpr.AsynchronousProcessor - Cancelling the connection for request AtmosphereRequest{ contextPath= servletPath= pathInfo=/pubsub/12 requestURI=/pubsub/12 requestURL=http://localhost:8080/pubsub/12 destroyable=true}
    11:23:00.730 [http-nio-8080-exec-1] INFO o.a.samples.pubsub.EventsLogger - onDisconnect(): 0:0:0:0:0:0:0:1:64739
@jfarcand
Copy link
Member

Seems to be a Firefox issue when closing tabs. Sound like SSE connection is never closed. Will document the issue, but I can't do anything to fix this FF bug.

@jfarcand jfarcand reopened this Aug 29, 2012
jfarcand added a commit that referenced this issue Feb 2, 2013
@jfarcand jfarcand closed this as completed Feb 2, 2013
jfarcand added a commit that referenced this issue Feb 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants