I dont' think so.
Altough you are right a Socket can listen and open multiple connection on one
port (Like a web server on port 80) when the server responds it responds on a
RANDOM port between 1000 and 65000.
You can test this using netstat -a.
So my question remains using MINA and long lived socket connections am i
limited to 65000 long lived socket connections and how can I load balance that.
Although the question is mostly for comprehension sake's I'm curious of the
experience of People using MINA under HEAVY load and how they reacted.
Thanks
Stéphane> Date: Sat, 13 Sep 2008 16:19:07 +0200> To: [email protected]>
Subject: Re: Load Balancing Socket connections> From: [EMAIL PROTECTED]> >
Stephane Rainville wrote:> > Question for the community.> > > > In Ip4 we are
limited to 2exp16 ports. > > Which is VERY high for HTTP GET because they are
very short lived connections.> > > I think you are confusing the number of
available ports with the number > of connection a port can handle. A web server
accept multiple requests > on one single port (80 usually).> > > > Has anybody
designed an application using long lived SOCKETS? That limit could be reached
fairly quickly and you would to load balance to multiple servers (Or maybe
multiple interfaces on the server could be another solution).> > > You usually
rely on semi-permanet sockets, even on HTTP (HTTP 1.1 + > Keepalive), otherwise
the cost of opening a connection will be overkilling.> You then should consider
that even on HTTP, connections are long lived.> > -- > --> cordialement,
regards,> Emmanuel Lécharny> www.iktek.com> directory.apache.org> >
_________________________________________________________________