cvs commit: src/sys/netinet tcp_subr.c

Mike Silbersack silby at FreeBSD.org
Thu Sep 28 23:24:27 PDT 2006


silby       2006-09-29 06:24:26 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_subr.c 
  Log:
  Rather than autoscaling the number of TIME_WAIT sockets to maxsockets / 5,
  scale it to min(ephemeral port range / 2, maxsockets / 5) so that people
  with large gobs of memory and/or large maxsockets settings will not
  exhaust their entire ephemeral port range with sockets in the TIME_WAIT
  state during periods of heavy load.
  
  Those who wish to tweak the size of the TIME_WAIT zone can still do so with
  net.inet.tcp.maxtcptw.
  
  Reviewed by: glebius, ru
  
  Revision  Changes    Path
  1.263     +24 -8     src/sys/netinet/tcp_subr.c


More information about the cvs-src mailing list