lkml.org 
[lkml]   [2001]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tcp_v4_get_port() and ephemeral ports
Davide Libenzi wrote:
>
> On Sun, 30 Sep 2001, Dan Kegel wrote:
>
> > I'm doing ftp server benchmarking, doing lots of connect()'s.
> > Since ports aren't supposed to be reused for 2MSL (theoretically 120 seconds),
> > the absolute limit on connections per second is 64K/120 = 500.
> > This actually could pose a problem for me. (Yeah, 2MSL is
> > set to 30 seconds in linux, so the problem isn't as severe
> > as the standard says, but it's still a problem.)
>
> net.ipv4.tcp_tw_recycle=1
> net.ipv4.tcp_fin_timeout=8
>
> ONLY FOR TESTING !! :)

OK, thanks, that will help!

I'm still interested in whether that patch I posted makes sense.
bind() *should* work that way, darn it :-)

- Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.091 / U:2.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site