commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barrie Selack" <bsel...@digipixart.com>
Subject FTPClient occasionally opens port to self instead of server
Date Tue, 01 Nov 2005 17:17:37 GMT
I've been having strange timeouts with commons.net and the FTPClient. I
finally created my own CustomSocketFactory to set timeouts and see what
addresses/pots were in use. After many successful connections using the
client (for PASV, getting file lists) after some period of time, it
decides instead of opening a connection to the server, to open a
connection to itself. There is no specific time period of series of events.

I have the ftp server set to respond on ports 60000-61000

So in the log (only applicable portion) the lines for opening a socket
look like...


2005-11-01 11:55:44,165 DEBUG createSocket with host: 207.www.xx.yy,
port: 60724 with timeout of 300000
... lots of other debugging ...
2005-11-01 11:55:44,547 DEBUG createSocket with host: 207.www.xx.yy,
port: 60436 with timeout of 300000
... lots of other debugging ...
2005-11-01 11:55:44,949 DEBUG createSocket with host: 207.www.xx.yy,
port: 60127 with timeout of 300000
... lots of other debugging ...
2005-11-01 11:55:45,376 DEBUG createSocket with host: 207.www.xx.yy,
port: 60377 with timeout of 300000
... lots of other debugging ...
2005-11-01 11:55:45,953 DEBUG createSocket with host: 207.www.xx.yy,
port: 60985 with timeout of 300000
... lots of other debugging ...
2005-11-01 11:55:46,362 DEBUG createSocket with host: 207.www.xx.yy,
port: 60027 with timeout of 300000
... lots of other debugging ...
2005-11-01 11:55:46,751 DEBUG createSocket with host: 24.www.xxx.yy,
port: 51897 with timeout of 300000

Hey! that last address is MY local address, the one the client is running on!

So the connection times out, since there is nothing to connect to there,
I mean here.. well you know what I mean.

Has anyone seen such behavior.. does FTPClient just get lost?

Any help would be greatly appreciated.

Regards,

Barrie Selack




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message