[undertow-dev] How to interrupt WebSocketClient.connect(...)
Ryan Hermanson
ryan.hermanson at gmail.com
Mon Aug 25 14:48:06 EDT 2014
You are absolutely correct. Running with 1.1.0.Beta7-SNAPSHOT times out
the connect attempt at 10s, as advertised.
Any idea when this is planned to be tagged for release?
Thanks.
On Mon, Aug 25, 2014 at 12:25 AM, Stuart Douglas <sdouglas at redhat.com>
wrote:
> 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20140825/62e45c99/attachment.html
More information about the undertow-dev
mailing list