[jboss-jira] [JBoss JIRA] (WFLY-3704) WebSocket Sessions must be manually closed

Cody Lerum (JIRA) issues at jboss.org
Fri Aug 1 19:16:33 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-3704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cody Lerum updated WFLY-3704:
-----------------------------

    Description: 
Currently if a WebSocket session goes inactive due to the browser shutting down or the user closing a tab the browser does not send a close event to the server. This behavior seems the same with Chrome and IE.

The underlying TCP socket is however inactive and can be confirmed by calling a Session#isOpen which returns false. This will cause a build up of sessions unless the user does something like 

{code}
 for (Session session : sessions) {
    if (!session.isOpen()) {
       session.close();
   }
}
{code}

This would need to be done periodically by the application. Shouldn't the server automatically close these sessions when the underlying socket goes inactive?      



  was:
Currently if a Web Socket session goes inactive due to the browser shutting down or the user closing a tab the browser does not send a close event to the server. This behavior seems the same with Chrome and IE.

The underlying TCP socket is however inactive and can be confirmed by calling a Session#isOpen which returns false. This will cause a build up of sessions unless the user does something like 

{code}
 for (Session session : sessions) {
    if (!session.isOpen()) {
       session.close();
   }
}
{code}

This would need to be done periodically by the application. Shouldn't the server automatically close these sessions when the underlying socket goes inactive?      





> WebSocket Sessions must be manually closed
> ------------------------------------------
>
>                 Key: WFLY-3704
>                 URL: https://issues.jboss.org/browse/WFLY-3704
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 8.1.0.Final
>            Reporter: Cody Lerum
>            Assignee: Jason Greene
>              Labels: websockets
>
> Currently if a WebSocket session goes inactive due to the browser shutting down or the user closing a tab the browser does not send a close event to the server. This behavior seems the same with Chrome and IE.
> The underlying TCP socket is however inactive and can be confirmed by calling a Session#isOpen which returns false. This will cause a build up of sessions unless the user does something like 
> {code}
>  for (Session session : sessions) {
>     if (!session.isOpen()) {
>        session.close();
>    }
> }
> {code}
> This would need to be done periodically by the application. Shouldn't the server automatically close these sessions when the underlying socket goes inactive?      



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list