From owner-cvs-sys Fri Sep 20 14:25:54 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA01436 for cvs-sys-outgoing; Fri, 20 Sep 1996 14:25:54 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA01242; Fri, 20 Sep 1996 14:25:24 -0700 (PDT) Date: Fri, 20 Sep 1996 14:25:24 -0700 (PDT) From: Paul Traina Message-Id: <199609202125.OAA01242@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/netinet tcp_input.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/09/20 14:25:23 Modified: sys/netinet tcp_input.c Log: If the incomplete listen queue for a given socket is full, drop the oldest entry in the queue. There was a fair bit of discussion as to whether or not the proper action is to drop a random entry in the queue. It's my conclusion that a random drop is better than a head drop, however profiling this section of code (done by John Capo) shows that a head-drop results in a significant performance increase. There are scenarios where a random drop is more appropriate. If I find one in reality, I'll add the random drop code under a conditional. Obtained from: discussions and code done by Vernon Schryver (vjs@sgi.com). Revision Changes Path 1.49 +18 -5 src/sys/netinet/tcp_input.c