Menu

#37 Timeout parameter is overwritten with 10000 by FTPConnectionFactory

v1.0_(example)
closed-fixed
nobody
timeout (1)
5
2016-02-25
2015-09-10
No

I wondered why the timeout was always 10 seconds even when I configured 1 hour and I found the reason:

Instead of 10000

return FTPConnectionFactory.getInstance(host, port, user, password, null, 10000, connectionType, passiveMode, [...]

the factory should use the given variable timeout

return FTPConnectionFactory.getInstance(host, port, user, password, null, timeout, connectionType, passiveMode, [...]

After the change the timeout was working.

Discussion

  • Arnold Maderthaner

    fixed in 1.0

     
  • Arnold Maderthaner

    • status: open --> closed-fixed
     

Log in to post a comment.