Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2007 21:41:51 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet tcp_hostcache.c
Message-ID:  <200706072141.l57Lfpup044829@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
andre       2007-06-07 21:41:51 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_hostcache.c 
  Log:
  In tcp_hc_insert() we may have the case where we have hit the global
  cache size limit but this bucket row is empty.  Normally we want to
  recycle the oldest entry in the bucket row.  If there isn't any the
  TAILQ_REMOVE leads to a panic by trying to remove a non-existing
  element.  Fix this by just returning NULL and failing the insert.
  This is not a problem as the TCP hostache is only advisory.
  
  Submitted by:   jhb
  
  Revision  Changes    Path
  1.14      +6 -0      src/sys/netinet/tcp_hostcache.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706072141.l57Lfpup044829>