[undertow-dev] How to interrupt WebSocketClient.connect(...)

Stuart Douglas sdouglas at redhat.com
Mon Aug 25 02:25:19 EDT 2014


This should be fixed in the 1.1 branch of Undertow. Can you try using 
Undertow upstream?

Stuart

Ryan Hermanson wrote:
> Is there way to cancel an outstanding
> WebSocketContainer.connectToServer(...) request ? A connection attempt
> to an offline server blocks a very long time (minutes), and debugging
> would indicate IoFuture<WebSocketChannel> seems unwilling to respect an
> interrupt/cancel from the main thread.
>
> IoFuture<WebSocketChannel> session = WebSocketClient.connect(xnioWorker,
> ssl, bufferPool, OptionMap.EMPTY, path, WebSocketVersion.V13,
> clientNegotiation); //TODO: fix this
> WebSocketChannel channel = session.get();
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev


More information about the undertow-dev mailing list