From owner-freebsd-questions@FreeBSD.ORG Tue Jul 4 10:27:10 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2126516A4DA for ; Tue, 4 Jul 2006 10:27:10 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8472043D4C for ; Tue, 4 Jul 2006 10:27:09 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k64AR3EY001211; Tue, 4 Jul 2006 13:27:04 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Tue, 4 Jul 2006 13:24:31 +0300 User-Agent: KMail/1.9.1 References: <20060704004255.Q42828@trex.centroin.com.br> In-Reply-To: <20060704004255.Q42828@trex.centroin.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607041324.31476.nvass@teledomenet.gr> Cc: scuba@centroin.com.br Subject: Re: TCP timeout X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 10:27:10 -0000 On Tuesday 04 July 2006 07:01, scuba@centroin.com.br wrote: > Hi folks, > > I'm facing some troubles with mail server on a busy slow link. > > I'm getting a lot of "sendmail: SYSERR: collect: read timeout on > connection from" entries in the logs. > > I found this page showing an workaround for Solaris. Is it > applicable for Free BSD 5.4? If positive, is there any sysctl variable to > tun it? > > -----------------xxxxxx----------------- > > TCP/IP connections time out too soon, especially on slow links. > > The tcp/ip abort interval in Solaris 2.x is too short, the default value > is 2 minutes. The result is that when an ACK isn't received in 2 minutes, > the connection is closed. This is most often seen by sendmail, which will > log > > sendmail: SYSERR: collect: read timeout on connection from ... > > You can fix this by running following command which increases the timeout > to 8 minutes (unit is millisec), which is the Solaris 2.4+ (and patched > 2.3) default. > > /usr/sbin/ndd -set /dev/tcp tcp_ip_abort_interval 480000 > > -----------------xxxxxx----------------- > Are you sure that's the case? Isn't Solaris 2 ancient(circa 1992)? that means that internet was very different... It doesn't seem normal these days for a server not responding for 75 seconds, which is the default timeout value for not established connections. anyway sysctl net.inet.tcp.keepinit to see current value sysctl net.inet.tcp.keepinit=timeout_in_ms to change it and /etc/sysctl.conf to make it permanent. HTH, Nikos