Networking Forums

Networking Forums > Computer Networking > Linux Networking > Strange problem with FTP (too many connections stop connecting)

Reply
Thread Tools Display Modes

Strange problem with FTP (too many connections stop connecting)

 
 
Ignoramus17950
Guest
Posts: n/a

 
      01-04-2008, 08:25 PM
I have a certain process (mine) that sends a lot of queries to a FTP
server (also mine). All machines and processes are mine and there is
no foul play involved. The machines are on the same organizational
network, though on different subnets.

The server is vsftpd on debian.

The client is a perl script using Net::FTP perl module running on
ubuntu gutsy.

As part of the process, the client connects to FTP daemon and does a
lot of directory listings. (like thousands of queries) as the client
browses through the server's directory tree.

That's all good and well.

As you know, FTP is such a protocol that for every directory listing, a
new data connection is made, with direction depending on passive
vs. active mode.

The problem is that sporadically, the connections that the client
makes to the server, time out in the "connect()" call. In other words,
the server is listening (and I can telnet to the specific port
assigned by FTP from another machine), but the client times out.

The weird thing is this: if I type

telnet <server> <assigned-port>

from the client machine, it times out.

If I type the same from another machine, it connects (with FTP server
properly detecting a fake connection coming from another IP and
discarding that connection).

My question is WTF, why would connect() calls time out like this.

Any idea.

thanks

i
 
Reply With Quote
 
 
 
 
Ignoramus17950
Guest
Posts: n/a

 
      01-04-2008, 08:31 PM
On 2008-01-04, Ignoramus17950 <(E-Mail Removed)> wrote:
> I have a certain process (mine) that sends a lot of queries to a FTP
> server (also mine). All machines and processes are mine and there is
> no foul play involved. The machines are on the same organizational
> network, though on different subnets.
>
> The server is vsftpd on debian.
>
> The client is a perl script using Net::FTP perl module running on
> ubuntu gutsy.
>
> As part of the process, the client connects to FTP daemon and does a
> lot of directory listings. (like thousands of queries) as the client
> browses through the server's directory tree.
>
> That's all good and well.
>
> As you know, FTP is such a protocol that for every directory listing, a
> new data connection is made, with direction depending on passive
> vs. active mode.
>
> The problem is that sporadically, the connections that the client
> makes to the server, time out in the "connect()" call. In other words,
> the server is listening (and I can telnet to the specific port
> assigned by FTP from another machine), but the client times out.
>
> The weird thing is this: if I type
>
> telnet <server> <assigned-port>
>
> from the client machine, it times out.
>
> If I type the same from another machine, it connects (with FTP server
> properly detecting a fake connection coming from another IP and
> discarding that connection).
>
> My question is WTF, why would connect() calls time out like this.


Oh yeah, and netstat -t shows

tcp 0 1 <client>:57013 <server>:38786 SYN_SENT

client and server names suppressed for privacy.

i
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset connections when connecting to some websites. alt.testing@gmail.com Linux Networking 3 12-20-2006 07:05 AM
Strange Problems with Connections Brett I. Holcomb Windows Networking 1 07-19-2006 04:12 AM
strange problem connecting to SMTP from outside Jaime Stuardo Windows Networking 1 07-20-2005 03:07 PM
tcp connections blocked on a suse server (very strange) Fernando Peral Linux Networking 0 11-28-2004 08:54 AM
strange problem connecting 2 linux boxes Sting Linux Networking 6 05-16-2004 06:50 PM



1 2 3 4 5 6 7 8 9 10 11