Dave Roberts wrote:
It was 18/01/2007 21:36, when Clinton Foster wrote:

Yes, this agrees with what I am seeing. I'm not sure if this is a clean
solution, but adding the following code near the bottom of
FtpDataConnection.getDataSocket() is one way to resolve the problem:

            if (dataSoc instanceof SSLSocket) {
                ((SSLSocket)dataSoc).startHandshake();
            }

Thanks Clinton.  This certainly works for me with other SSL aware
clients.  I was hoping that the clients would behave better and cope
with a closing of the connection.  After all, setting up the SSL is
relatively time consuming and in the case of an empty directory,
unnecessary.

However this would appear to be a fix that would work with any
client and therefore has much appeal.

Thanks guys! Fix has been commited with tests to reproduce in rev 498139.

/niklas

Reply via email to