From owner-freebsd-current@FreeBSD.ORG Tue Jul 20 20:48:27 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD15116A4CE for ; Tue, 20 Jul 2004 20:48:27 +0000 (GMT) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77CD043D5D for ; Tue, 20 Jul 2004 20:48:27 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from speck.techno.pagans (c-24-21-241-225.client.comcast.net [24.21.241.225]) by mail.bitfreak.org (Postfix) with ESMTP id B1B3B2A477; Tue, 20 Jul 2004 13:48:26 -0700 (PDT) Received: from spud (spud.techno.pagans [172.21.42.19]) by speck.techno.pagans (Postfix) with ESMTP id 863DFA968; Tue, 20 Jul 2004 13:46:31 -0700 (PDT) From: "Darren Pilgrim" To: "'Matt White'" , Date: Tue, 20 Jul 2004 13:48:10 -0700 Message-ID: <000401c46e9a$e14dd590$132a15ac@spud> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: <2EDF6D54F4853447EB6F9018@[192.168.1.3]> Importance: Normal Subject: RE: fetch hangs, part 2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 20:48:27 -0000 I've been having the same (or a similar problem). Fetching the distfile = for a port will hang. I poked some more at this and found that all the = sites fetch is hanging on successfully negotiate the TCP connection then go = dead without closing the connection. My workaround has been to edit the = Makefile and remove the offending site from MASTER_SITES or manually fetch from ftp.freebsd.org. > From: Matt White >=20 > Thanks, but it looks like those are the default settings, so I'm = guessing=20 > setting that's not going to help me. It's probably better to figure = out=20 > what's wrong here anyway so we can use whatever settings we want. If = I=20 > don't hear anything more, I'll try to get a ktrace tonight. >=20 >=20 > -Matt >=20 > --On Sunday, July 18, 2004 1:48 PM -0500 "Conrad J. Sabatier"=20 > wrote: >=20 > > > > On 18-Jul-2004 Matt White wrote: > >> I looked in the archives and saw that a couple of others also had > >> this > >> problem. Fetch is getting distributions for ports and it'll just > >> hang. > >> Killing the build and restarting it will usually cause it to = advance. > >> Did > >> any of you guys who saw this problem before come up with a = solution? > > > > I found that changing my buffer size settings made all the = difference. > > I had been using the following in /etc/sysctl.conf: > > > > net.inet.tcp.recvspace=3D131072 > > net.inet.tcp.sendspace=3D65536 > > > > Changing them to: > > > > net.inet.tcp.recvspace=3D65536 > > net.inet.tcp.sendspace=3D32768 > > > > Solved the problem.