You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2019/05/17 04:43:53 UTC

[Bug 63252] [PATCH] FTP prevent No Transfer Timeout during long listings

https://bz.apache.org/bugzilla/show_bug.cgi?id=63252

--- Comment #2 from Jaikiran Pai <ja...@apache.org> ---
I had a look at the patch. Upon the "idle" timeout being reached, as you note,
you trigger a command from the client, which happens to be:

> The command used to trigger a data connection is a LIST on the current file being parsed by the listing.

IMO, the list command can be potentially expensive (imagine it getting
triggered on a directory), more so because we aren't really interested in what
it returns. Instead of issuing a list command, can you instead issue a "NOOP"
command, available via the FTPClient#sendNoOp() which as per the javadoc of
this method is meant to be used in cases like this one?

-- 
You are receiving this mail because:
You are the assignee for the bug.