Hi

I've commited a change for this. Not really sure what causes the problem but the test now allows for a SocketException as well.

Keep on reporting!

/niklas

Peter Kostouros wrote:
Hi

DefaultMaxLoginTest and CustomMaxLoginTest are failing on a Unix/Linux environment: SocketExceptions are raised whereas FTPConnectionClosedExceptions are expected.

FTPConnectionClosedException documentation mentions that such exceptions are raised when an FTPReply.SERVICE_NOT_AVAILABLE|| <http://commons.apache.org/net/apidocs/org/apache/commons/net/ftp/FTPReply.html#SERVICE_NOT_AVAILABLE>| |response (421) is received to a failed FTP command. I have not noticed this error under a Windows environment.

Here is the surefire report for DefaultMaxLoginTest.

-------------------------------------------------------------------------------
Test set: org.apache.ftpserver.clienttests.DefaultMaxLoginTest
------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.693 sec <<< FAILURE! testLogin(org.apache.ftpserver.clienttests.DefaultMaxLoginTest) Time elapsed: 1.686 sec <<< ERROR!
java.net.SocketException: Connection reset
   at java.net.SocketInputStream.read(SocketInputStream.java:168)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
   at java.io.FilterInputStream.read(FilterInputStream.java:66)
   at java.io.PushbackInputStream.read(PushbackInputStream.java:122)
at org.apache.commons.net.io.FromNetASCIIInputStream.__read(FromNetASCIIInputStream.java:75) at org.apache.commons.net.io.FromNetASCIIInputStream.read(FromNetASCIIInputStream.java:170)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at org.apache.commons.net.telnet.TelnetInputStream.__read(TelnetInputStream.java:114) at org.apache.commons.net.telnet.TelnetInputStream.run(TelnetInputStream.java:535)
   at java.lang.Thread.run(Thread.java:619)
   at java.lang.Thread.run(Thread.java:619)


Reply via email to