bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/27163] FTP directory listing doesn't work


From: tromey at gcc dot gnu dot org
Subject: [Bug classpath/27163] FTP directory listing doesn't work
Date: 19 Apr 2006 18:39:12 -0000


------- Comment #1 from tromey at gcc dot gnu dot org  2006-04-19 18:39 -------
I spent some time looking into this bug today.
I am not certain that it is a bug, but I'm also not convinced
that it isn't.

I tracked it down to the ftp data socket's available() method
returning 0.  This causes the 'file.ready()' condition on the loop
to return false.

The test case does work for me on occasion... if the timing is right,
data will be available on the socket for reading, and the ready() test
will succeed.

If this is a bug it is a rather obscure one, as in, perhaps the ftp
code should ensure that some bytes are available before returning the
input stream.  

It is probably more usual for loops like this to simply call
readLine and then break out if it returns null.  When I change the
test case to do this, it works all the time.

I only see the exception with gij 4.1 (not trunk) and the gcc.gnu.org site.
I haven't looked into this yet.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-19 18:39:12
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27163





reply via email to

[Prev in Thread] Current Thread [Next in Thread]