Re: Intercepting WebSocket ping messages

2017-03-31 Thread Robert Lewis
o-8443-exec-10: clearHandler (start) 909703826:1000491596 http-nio-8443-exec-10: clearHandler (end) http-nio-8443-exec-10: onWritePossible (end) http-nio-8443-exec-10: doWrite (end) On Fri, Mar 31, 2017 at 9:01 AM, Mark Thomas <ma...@apache.org> wrote: > On 30/03/17 21:13, Rob

Intercepting WebSocket ping messages

2017-03-30 Thread Robert Lewis
Is there a way to intercept a ping message to send a pong? I need to do this synchronize sends to the endpoint. I tried session.addMessageHandler(new javax.websocket.MessageHandler.Whole() { @Override public void onMessage(PongMessage message) {

Re: Tracking down a Basic.sendBinary() issue

2017-03-30 Thread Robert Lewis
moved out of the sync block to fix a deadlock situation indicates otherwise. Ping on every call fixes the problem for us, and we will be working to move to 8.5 soon anyway. Thanks, -Rob On Thu, Mar 30, 2017 at 1:09 PM, Mark Thomas <ma...@apache.org> wrote: > On 29/03/17 04:04, Robert Lewi

Re: need help with websocket

2017-03-29 Thread Robert Lewis
WSS will work if you enable and configure the HTTPS connector in server.xml. This part of the configuration is not really wss specific and tomcat site contains a bunch of good docs on how to do this. > On Mar 29, 2017, at 4:40 PM, Sharat Jagannath wrote: > > The code on

Re: Tracking down a Basic.sendBinary() issue

2017-03-28 Thread Robert Lewis
r 28, 2017 at 3:46 PM, Mark Thomas <ma...@apache.org> wrote: > On 28/03/17 00:30, Robert Lewis wrote: > > Hi, > > > > I am tracking down a fairly sporadic bug in our software that uses Tomcat > > 8.0.38. Long story short, sometimes calls to Basic.sendBinary() to a

Tracking down a Basic.sendBinary() issue

2017-03-27 Thread Robert Lewis
Hi, I am tracking down a fairly sporadic bug in our software that uses Tomcat 8.0.38. Long story short, sometimes calls to Basic.sendBinary() to a full buffer then to a small buffer (eg. 8192x3 then 444 bytes). The first 8192 sends will succeed and occasionally we see the last 444 byte send

Tracking down a Basic.sendBinary() issue

2017-03-27 Thread Robert Lewis
Hi, I am tracking down a fairly sporadic bug in our software that uses Tomcat 8.0.38. Long story short, sometimes calls to Basic.sendBinary() to a full buffer then to a small buffer (eg. 8192x3 then 444 bytes). The first 8192 sends will succeed and occasionally we see the last 444 byte send