tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémy Maucherat <>
Subject Re: Websocket client creates two threads per SSL client connection - intended or accidental?
Date Thu, 17 Dec 2015 16:45:26 GMT
2015-12-17 17:25 GMT+01:00 Barry Coughlan <>:

> Each AsyncChannelWrapperSecure creates two threads, and
> WsWebSocketContainer creates an AsyncChannelWrapperSecure for each secure
> connection.
> Is this behaviour intended or is this a bug?
> I initially posted this as a bug because:
> 1. The behaviour is not mentioned in the Websocket How-To
> 2. The behaviour only happens with secure connections
> 3. It's very inefficient, especially considering the How-Tos emphasis on
> not using the BIO connector.
> You should really post about this on the user list ...

Tomcat provides a websocket client as required by the specification. The
websocket client is written with NIO2, there's no option to use something
else and is not related in any way to the Tomcat connector.

However, we really only care at this point about the server part of
websocket, and IMO the client is unusable due to missing basic features
(but it is quite fine, you can use thirdparty websocket clients). The
problem is that in the real world a websocket client also needs to be a
good HTTP client (see
), so it is a rather bloated component.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message