I have a binary queue that I am writing to a websocket server written
in java from a client end point with the following code,

        while((bbuf = messageQueue.take()).get(0) != 0)
        {
            bbuf.position(bbuf.limit());
            bbuf.flip();
            for(Session session : sessionList)
            {
                session.getBasicRemote().sendBinary(bbuf);
            }
        }

However sometimes the 2nd message is dropped or the first message is
sent with no data. Why might this be happening, instead of the
messages getting sent correctly with no data lost 100% of the time?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to