atmosphere icon indicating copy to clipboard operation
atmosphere copied to clipboard

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

Open xenster86 opened this issue 14 years ago • 1 comments

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

xenster86 avatar Aug 20 '12 08:08 xenster86

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 avatar Aug 29 '12 00:08 jfarcand