From owner-freebsd-questions Thu Jan 25 9:22:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.hutchtel.net (ns1.hutchtel.net [206.9.112.100]) by hub.freebsd.org (Postfix) with ESMTP id 3503437B400; Thu, 25 Jan 2001 09:22:06 -0800 (PST) Received: from mark9 (hutch-150.hutchtel.net [206.10.67.50]) by ns1.hutchtel.net (8.9.1/8.9.0) with ESMTP id LAA13811; Thu, 25 Jan 2001 11:22:02 -0600 (CST) From: jpaetzel@hutchtel.net To: Steve Price , questions@FreeBSD.ORG, Kris Kennaway Date: Thu, 25 Jan 2001 11:21:33 -0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: ftp slow to connect Message-ID: <3A700C3D.29502.4A3ECA@localhost> In-reply-to: <20010125001928.E95605@bonsai.knology.net> References: <20010124221518.A49024@citusc17.usc.edu>; from kris@freebsd.org on Wed, Jan 24, 2001 at 10:15:18PM -0800 X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 25 Jan 2001, at 0:19, Steve Price wrote: > On Wed, Jan 24, 2001 at 10:15:18PM -0800, Kris Kennaway wrote: > > > > > > P.S. You're not running out of inetd, are you? > > > > > > Yes I am. I can't seem to get ftpd to start as a daemon for > > > some dang reason. :/ > > > > Then I bet it's inetd hanging, not ftpd. > > Okay, but it seems inetd has already handed of the request to > ftpd since I get the password prompt and then it hangs. Unless > I inetd is handling the authentication for ftpd then the problem > is most likely with ftpd and not the other way around. But heh, > I'll be glad to get this resolved so I'll investigate it further > and see what turns up. :) > > -steve I can duplicate the same behavior of ftpd. I am running a local network that connects to the internet via pp with the -nat option. I am not running DNS on my local network and ftp takes 30 seconds or so to autheticate. Also, if I don't have my ppp link up then trying to ftp anything in the local network causes the gateway to bring the link up. Running inetd with the -dl flags cures the problem. The gateway doesn't bring the ppp link up, and ftp autheticates very fast. I would run DNS on my local network, but I haven't been able to figure out how to deal with the dynamic IP that I am assigned when connecting to the internet. If I take ftpd out of my inetd.conf and run /usr/libexec/ftpd -D then I am able to run ftpd as a background daemon and get normal connection behavior. (ie no lag to authenticate) Trying to start ftpd without the -D flag gives the error: getpeerbyname (./ftpd): Socket operation on non-socket. This leads me to believe that the "problem" is in inetd, not in ftpd. Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message