LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2002, 09:06 PM   #1
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Rep: Reputation: 15
Why Does It Take So Long To Connect via FTP?


I have a dedicated server running Red Hat 7.2 with WU-FTPd version 2.6 for FTP access. The server is only 500 MHz, 32 MBs of RAM, and has a 5 GB drive but it is pretty quick via HTTP, SSH, SSL, etc.

I can't figure out why it takes it so long to connect whenever I login or upload/download any files (even tiny scripts). It just says connecting for like 15 seconds each time then downloads the file right away.

I checked through the settings under FTP Server in Webmin but I couldn't find anything that pertained to how long it takes to accept a connection. Is there such a thing? Or is it just because my server doesn't have a lot of MHz or RAM? Unfortunately, I can't upgrade anything on it so I have to make do. It only receives about 50 visitors a day (at the most).

I know it's not my host's network because I also have several accounts with them on their shared servers that have A LOT more accounts and RAM, etc. Whenever I login or upload/download via FTP it does so within 2 seconds.

Any ideas?
 
Old 07-28-2002, 05:27 AM   #2
tchung
LQ Newbie
 
Registered: Jul 2002
Location: CA, USA
Distribution: Fedora
Posts: 12

Rep: Reputation: 0
Could it be any firewall settings? Have you tried with flushing ipchains? /sbin/ipchains -F

Thomas
 
Old 07-30-2002, 09:30 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Usually a problem like that is caused by it trying to do a dns lookup or a ident lookup. Because you probably haven't set that up it just waits till the lookup times out and then continues on. Usually the dns lookup can be solved by simply adding an entry in the file /etc/hosts.
 
Old 08-01-2002, 08:34 AM   #4
Rich
LQ Newbie
 
Registered: Jan 2001
Location: Raleigh, NC
Posts: 11

Rep: Reputation: 0
I also vote for the DNS lookup. I seem to hit this problem periodically over the years after installing server after server. It's just a "brain fart" on my part....

You can also check the /etc/resolv.conf file for valid DNS entries (or in this case, invalid ones). Invalid entries can be nothing more than your host not having access to the DNS server specified.

Good luck!
 
Old 08-01-2002, 11:14 PM   #5
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
I had one like this come up 2 days ago, even if you have the correct entries specified in the /etc/hosts file if your actual dns setting are wrong you will get this delay, example from my prob I had, I have 4 machines on my lan I have all the names and ip's in my hosts file, only one machine connects to the internet, but for the heck of it I put my dns (ISP's numbers ) on all machines, now when I tryed to use my webmail server on local lan it would take 1 minute to send a message to another machine on local lan, I removed dns settings from systems and now it doesn't even try to do a dns lookup and goes right off the hosts file, so case in point even if your hosts file is correct, if you can't get to the dns that you have specified that might be your problem, I hope this helped ya.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection with Long Delay (Telnet, Ftp) sarmadys Linux - General 8 02-09-2011 01:55 AM
how to connect ftp... monojit_18 Linux - Software 2 10-03-2004 06:16 PM
SSH takes a long time (2 minutes) to connect jinju Linux - Newbie 5 07-31-2004 11:37 PM
Cant connect to my ftp from the outside deep9 Linux - Networking 3 04-19-2004 06:22 AM
ftp - not able to connect chapzilla Linux - Newbie 1 07-29-2003 07:11 PM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration