D25117: file ioslave: stop copying as soon as the ioslave is killed

David Faure noreply at phabricator.kde.org
Sun Feb 2 10:17:41 GMT 2020


dfaure added inline comments.

INLINE COMMENTS

> meven wrote in jobtest.cpp:2045
> Making an ioslave reading an env var for testing purposes is not a great alternative.

Does this mean the file could be made smaller again?

(to reduce disk-space requirements)

> file_unix.cpp:317
> +
> +        if (testMode) {
> +            QThread::usleep(150);

Maybe in testMode, the slave can become particularly slow for one given filename. 
E.g. if (testMode && fileName.contains("slow"))

This way, for other files, it remains fast, and for that one file it can be really reliably slow (possibly sleeping for a whole second, or something like that).

It also makes the more generically named "KIOSLAVE_FILE_ENABLE_TESTMODE" available for enabling other kinds of "test mode" in the ioslave (the filename acting as an additional switch).

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D25117

To: meven, #frameworks, dfaure, ngraham, apol
Cc: apol, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200202/197e3b0d/attachment.html>


More information about the Kde-frameworks-devel mailing list