FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 20th, 2003, 12:35 AM
chchar chchar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 chchar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Slow FTP Connection

I'm using wu-ftpd-2.6.1 on my RH 7.2 OS. I facing a problem
to connect to my ftp server. It take about 1 minute for
the initial connection. Once connected the server, the file transfer
will be very fast. But if I telnet or make a http to that server, the
connect speed is fast.

Any idea .. Why ftp is slow but telnet/http is fast ?
Thank

Regards,

Reply With Quote
  #2  
Old February 22nd, 2003, 09:13 AM
ThunderBall's Avatar
ThunderBall ThunderBall is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Sweden
Posts: 4 ThunderBall User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ThunderBall
Lightbulb DNS

I had a simular problem and found out that my DNS was wrong.

I had define my DNS lookup to my gateway 192.168.0.1, but
changes that to the DNS IP to the ISP provider.

After this changes the initial connection time disapper.

Maybe u have the same problem ?

- ThunderBall

Reply With Quote
  #3  
Old February 27th, 2003, 08:44 AM
Siftah Siftah is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Manchester
Posts: 5 Siftah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Siftah
I had this problem too and traced it back to the following:

wu-ftp'd was being asked to try and ident a user as they logged into the ftp server, doing this caused the delay you are experiencing. I can't fnd the original configuration that I rm'd from the config file, why I didn't just comment it out instead of deleting it I'll never know but anyway...

In my /etc/xinetd.d/wu-ftpd file I have the following:

Quote:
# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_on_success += DURATION #USERID
log_on_failure += #USERID
nice = 10
disable = no
}


This kind of problem can also be caused by bad DNS setup or bad routing, check your default route is fine and that DNS is correctly configured, including reverse lookup of the hosts you're connecting from etc.

Hope that helps...

Reply With Quote
  #4  
Old February 27th, 2003, 07:07 PM
chchar chchar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 chchar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE : Slow FTP Connection...

Thank for your replied. Probably I guest is because of my
DNS problem. Any how, I will try look at my DNS.

Below are the messages when I ftp to that server. The slower
sequence is when "Socket connected waiting for login sequence".

==============================================
Resolving host name 10.8.1.70...
Connecting to (10.8.1.70).
Connected to (10.8.1.70) -> IP: 10.8.1.70 PORT: 21.
Socket connected waiting for login sequence.

220 mypgsnet01 FTP server (Version wu-2.6.1-16.7x.1) ready.
USER chchar
331 Password required for chchar.
PASS (hidden)
230 User chchar logged in.
SYST
215 UNIX Type: L8
REST 100
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
PWD

============================================

Reply With Quote
  #5  
Old November 15th, 2003, 09:18 AM
nthdesign nthdesign is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 nthdesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Slow FTP Connection Fixed by Modifying XINETd

Thank you, Siftah!

I had the same problem as the thread-starter. It took about 40 seconds to connect to my FTP server, but then transfers were blazing fast. I commented out the USERID portion of the XINETd config file, as described by Siftah, and restarted XINETd. This fixed it. Now I connect to the FTP server in under 1 second.

On Redhat 7.x you can restart XINETd using the following:
/sbin/service xinetd restart

Reply With Quote
  #6  
Old November 4th, 2004, 10:32 AM
Bomber8888 Bomber8888 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 Bomber8888 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm having the exact same problem with cuteftp.. it takes like 20-30 secs before i can log in..... and this never used to happen before. I just got a new computer and this started to happen... is it becuz of service pack 2 or is there a setting in cuteftp that is identifying something that is taking alittle longer?

Bomber

Reply With Quote
  #7  
Old November 4th, 2004, 11:00 AM
Siftah Siftah is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Manchester
Posts: 5 Siftah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Siftah
Quote:
Originally Posted by Bomber8888
I'm having the exact same problem with cuteftp.. it takes like 20-30 secs before i can log in..... and this never used to happen before. I just got a new computer and this started to happen... is it becuz of service pack 2 or is there a setting in cuteftp that is identifying something that is taking alittle longer?

Bomber


Humm, you're having an entirely different problem to be honest, you have a problem with your FTP client whereas the thread starter had a problem with his FTP server...

Either way, I would probably look at your FTP settings and make sure it's set to use PASV mode, it's quite likely the firewall in SP2 is interfering with the PORT mode which a lot of FTP clients default to - the delay you experience is perhaps PORT mode timing out and the client then trying a PASV connection instead. Try enabling PASV mode and see if the speed improves.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Slow FTP Connection


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway