RE: [squid-users] Linux: Cannot bind to socket ...

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 27 Mar 2007 21:46:20 +0200

tis 2007-03-27 klockan 11:36 -0400 skrev NGUYEN, KHANH, ATTSI:
> multiple IP addresses on the server is not a problem. I can have more
> than one address bind to one network interface. What will it help if I
> already use up to 65K sockets on the time_wait state? should 65K limit
> is per box or per ip address? and why is this 65K limit? can I make
> 100K or higher?

We are now diverging a bit outside Squid and into the land of TCP/IP
communication and kernel stupidities.

In TCP/IP the limitation is 65K outgoing connections per source IP and
destination:port. (source IP:port, destination IP:port combination must
be unique).

In kernel land the limitation of "anonymous" outgoing connections with
automatically assigned local endpoint is 65K in total, no matter how
many local IPs you have or how many different destinations you talk to.

In kernel land the limitation of explicitly bound outgoing connections
is 65K per local IP. (explicit bound to a local ip:port, each
different per connection)

outgoing connections == outgoing connections in any state from SYN_SENT
to TIME_WAIT, all included.

Regards
Henrik

Received on Tue Mar 27 2007 - 13:46:26 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:02 MDT