commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
Date Tue, 21 Jun 2005 10:58:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35338>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35338





------- Additional Comments From scohen@apache.org  2005-06-21 12:58 -------
(In reply to comment #16)
> Its odd.
> 

Very odd.  The oddest thing about it is it looks to me that the command
initiated by the listNames() method (NLST) appears to have succeeded and been
acknowledged.  So why the hang?

Do you have a debugger you can run this under (such as the one in Eclipse?)?  
Setting a breakpoint on the line where you are looping through the array of
names and returned, do you hit that breakpoint?

The other thing I notice that strikes me as odd is line 16.  We issued no port
command, unless that somehow happens when in passive mode, if that code is still
in your program.

 16   0.652929 192.168.195.128 -> 209.18.78.251 FTP Request: PORT
192,168,195,128,128,88
What does it mean 192,168,195,128,128,88?

I suppose you could try disconnecting from the FTP server before entering that
loop to see if that does any good, but I admit, I'm grasping at straws here.



> However, tcpdump as you started it (I know I told you so :-) captures only what
> happens on port 21, due to the nature of ftp the data connection uses a
> different port.
> 
> So please, do the following
> 
> tcpdump -w ftplog.dmp host konsensys.com
> 
> But please be sure no other network connection is active from your box to this
> host. Afterwards we have logged the full communication which happens between you
> and the ftp server. Now we should see the transfer of the directory listing.
> 

I agree.  In light of this PORT command, it would be interesting to see what is
going on here.




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message