https://bz.apache.org/bugzilla/show_bug.cgi?id=58624

--- Comment #4 from Barry Coughlan <b.coughl...@gmail.com> ---
(In reply to Christopher Schultz from comment #3)
> (In reply to Barry Coughlan from comment #2)
> > My current working theory for what's happening is as follows: 
> > - Server starts sending a message
> > - The client closes the connection before the executor finishes the message,
> > which causes WsRemoteEndpointImplBase.closed to be set to true.
> > - Server finishes sending the message, calls endMessage, which calls
> > writeMessagePart which throws an IllegalStateException because closed=true.
> > - Because of the exception the future never completes and the exception
> > doesn't get logged.
> 
> I'm no expert, but what about this:
> 
> The Future won't complete, but it should probably throw ExecutionException
> if you call one of the "get" methods. You can unwrap that and see the
> exception that caused the operation to fail.

The getBasicRemote().sendObject() calls the Future.get() on our behalf (see the
stack trace in the first post). The .get() never returns because the onResult
of the FutureToSendHandler never gets called.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to