Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2001 11:21:33 -0600
From:      jpaetzel@hutchtel.net
To:        Steve Price <sprice@hiwaay.net>, questions@FreeBSD.ORG, Kris Kennaway <kris@FreeBSD.ORG>
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

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A700C3D.29502.4A3ECA>