users@tyrus.java.net

Re: TyrusSession.broadcast enhancement

From: Gerard Davison <gerard.davison_at_oracle.com>
Date: Fri, 6 Dec 2013 12:27:11 +0000

Okay fair enough, for some reason I though you had an in and an out port, I must have misread that somewhere, thanks for the correction on the ports also.

Gerard


On 4 Dec 2013, at 12:34, Pavel Bucek <pavel.bucek_at_oracle.com> wrote:

>
> BTW, single websocket connection does *not* require two TCP ports. It is standard TCP/IP connection, same as for HTTP request. The only difference is that the connection used for websocket upgrade cannot be reused and will be always closed after websocket communication is over. All connections are connecting to port 80 / 8080 / 7002 / wherever is your appserver listening and that's it. Port related limit would be "64k per client per server", which is very unlikely to affect regular clients. So on the server side, the limit you'd hit would be most likely number of opened file descriptors (considering there is enough memory etc..)