[kaffe] org.apache.commons.net.ftp.FTPClient: disconnect() hangs

Ito Kazumitsu kaz at maczuka.gcd.org
Mon Oct 11 09:08:48 PDT 2004

>>>>> "I" == Ito Kazumitsu <ito.kazumitsu at mail.hidec.co.jp> writes:

I> Unfortunately,  another thread is still reading from the input
I> stream.  PushbackInputStream's read() is also synchronized.
I> So close() cannot get a lock until the read() ends.  The reading
I> thread seems to be waiting for some data from the FTP server,
I> which will never come.  So both read() and close() will never
I> finish.

I have found a workaround for this. Calling logout() before calling
disconnect() will help.

More information about the kaffe mailing list