https://bz.apache.org/bugzilla/show_bug.cgi?id=47414
--- Comment #2 from Eugène Adell <[email protected]> --- Created attachment 36473 --> https://bz.apache.org/bugzilla/attachment.cgi?id=36473&action=edit patch introducing a reading timeout for FTP the attachment is in text format Short Description Introduce a read timeout, then receiving files which look infinite will not hang anymore. Sending is not concerned, as timeout will already occur if necessary. Tests It should be tested seriously, as FTP is not the most simple thing, and because we rely on external library (commons-net). My tests are OK for now, but maybe do you have servers to test against. What the patch does : . Introduce the dataTimeout as suggested by a comment, which will make impossible any infinite reading (described as 'FTP hangs' by many) . Call the abort command when the timeout is detected, then the server will be notified it should stop sending the current file. This abort is not sent in any urgent mode as described by RFC 959, as the commons-net doesn't support this feature yet. Although the effects are unsure since all servers are not implemented the same way, this feature is here to be compliant with the RFC. -- You are receiving this mail because: You are the assignee for the bug.
