8 Replies Latest reply on Nov 19, 2014 10:31 AM by David Jensen

    WebSocket connection closes after 65 seconds no matter what

    David Jensen Newbie

      Hi,

      I'm using JBoss EAP 6.3.  I've got a Websocket that works fine for about 65 seconds.  Then it stops working.  It's state is still "OPEN" but nothing can be sent to it.  The exception is: java.lang.IllegalStateException: JBWEB008529: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method

       

      It doesn't matter how much or little information I send to it.  I could open the connection, then do nothing for 65 seconds and it would close.  Or, I could open the connection and constantly send messages for 65 seconds and it would work fine then close.  I'm not explicitly setting any timeout.  But as stated early, the problem cannot be related to "idle" (because it doesn't matter how little or much I send).

       

      I've tried on both Firefox and Chrome.

       

      The code is very simple, all I do is: session.getBasicRemote().sendText(message);  and it works fine about about 65 seconds, then booom!.

       

      Any ideas?

       

      Thanks,

       

      David Jensen