atmosphere
atmosphere copied to clipboard
onDisconnect is not called in firefox for sse transport until firefox is fully closed
Atmosphere 1.0.0.beta5, tomcat 7.0.26, NIO transport, firefox 14.0.1
- Open jquery-pubsub sample.
- Select sse transport and send some messages.
- 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
- 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
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.