Mola-maker commented on PR #9083: URL: https://github.com/apache/opendal/pull/9083#issuecomment-7178161295
One more update, in af89700: the first version detached the connection for every ambiguous empty listing, which made the vsftpd suite slow (26s → 118s) because each check forced a reconnect. `FtpCore::ftp_dir_exists` now: - After a successful `CWD`, changes back to the root (the normalized absolute root that `ftp_connect` enters) and returns the connection to the pool. - Treats a `550` reply as "missing". The working directory is unchanged, so the connection is reused. - Returns any other `CWD` error instead of reading it as "missing". - Uses a guard to detach the connection when such an error occurs, when changing back fails, or when the future is dropped between the two `CWD`s. Against `fauria/vsftpd`: - `OPENDAL_FTP_ROOT=/`: 119/119 in 25s. - `OPENDAL_FTP_ROOT=/a/b/`: 119/119 in 26s. Both runs include `test_list_empty_hidden_dir`. libunftp/Fs: 109 passed; the 10 `REST` failures are by design. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
