Re: maximum number of outgoing connections
- From: John-Mark Gurney <gurney_j@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Aug 2007 09:53:55 -0700
Igor Sysoev wrote this message on Mon, Aug 20, 2007 at 19:11 +0400:
It seems that FreeBSD can not make more than
net.inet.ip.portrange.last - net.inet.ip.portrange.first
simultaneous outgoing connections, i.e., no more than about 64k.
If I made ~64000 connections 127.0.0.1:XXXX > 127.0.0.1:80, then
connect() to an external address returns EADDRNOTAVAIL.
Isn't this more of a limitation of TCP/IP than FreeBSD? because you
need to treat the srcip/srcport/dstip/dstport as a unique value, and
in your test, you are only changing one of the four... Have you tried
running a second we server on port 8080, and see if you can connect
another ~64000 connections to that port too?
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: maximum number of outgoing connections
- From: Igor Sysoev
- Re: maximum number of outgoing connections
- References:
- maximum number of outgoing connections
- From: Igor Sysoev
- maximum number of outgoing connections
- Prev by Date: Re: Racoon(ipsec-tools) enters sbwait state or 100% CPU utilization quite often on RELENG_1_2
- Next by Date: Re: maximum number of outgoing connections
- Previous by thread: Re: maximum number of outgoing connections
- Next by thread: Re: maximum number of outgoing connections
- Index(es):