When triggering disconnection in js client 2.0.6, browser freezes on an opened connection;
I compared requests sent for disconnection on both versions, and there is a difference:
GET /application/event/?X-Atmosphere-Transport=close&X-Atmosphere-tracking-id=0330bc0a-ac59-46fd-951c-bb818880aff8&_=1383047834335 HTTP/1.1
Accept: */*
Accept-Language: fr-BE
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Accept-Encoding: gzip, deflate
Host: 127.0.0.1:8888
DNT: 1
Connection: Keep-Alive
Cookie: JSESSIONID=16yets032qb8e
Referer: http://127.0.0.1:8888/Application.jsp?gwt.codesvr=127.0.0.1:9998#FCA_CUSLIST.DEFAULT
Content-Type: text/x-gwt-rpc; charset=UTF-8
AtmosphereResource{
uuid=4dff4375-14d0-4e45-a9d1-0f8111fede61,
transport=UNDEFINED,
isInScope=true,
isResumed=false,
isCancelled=false,
isSuspended=false,
broadcaster=/application/event size: 1,
atmosphereHandler=com.fircosoft.cdb.server.event.EventMessageHandler@2b5bde56,
action=Action{timeout=-1, type=CREATED}}
GET /application/event/?X-Atmosphere-Transport=close&X-Atmosphere-tracking-id=07782c9d-d042-44a1-8307-9fac51d3f2fb&_=1383048787241 HTTP/1.1
Accept: */*
Referer: http://127.0.0.1:8888/Application.jsp?gwt.codesvr=127.0.0.1:9998#FCA_CUSLIST.DEFAULT
Accept-Language: fr-BE
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Accept-Encoding: gzip, deflate
Host: 127.0.0.1:8888
DNT: 1
Connection: Keep-Alive
Cookie: JSESSIONID=u555j11uefob
Content-Type: text/plain
X-Atmosphere-Framework: undefined
X-Atmosphere-Transport: polling
X-Cache-Date: 0
X-Atmosphere-tracking-id: undefined
AtmosphereResource{
uuid=undefined,
transport=POLLING,
isInScope=true,
isResumed=false,
isCancelled=false,
isSuspended=false,
broadcaster=/application/event size: 1,
atmosphereHandler=com.fircosoft.cdb.server.event.EventMessageHandler@420b2dc4,
action=Action{timeout=-1, type=CREATED}}
This results in a polling connection opened instead of closing the current one.
Debugging on server side, for instance in OnDisconnectInterceptor, 'polling' transport isn't handled as a disconnection at all (used to be 'close' transport).