rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

Option to release inactive file descriptors automatically after some time #1280

Open Nirzak opened 1 month ago

Nirzak commented 1 month ago

Hi, we know that after checking or downloading rtorrent keep open the file descriptor until we stop and restart seeding the file. This creates a problem when we need to upload a file automatically using rclone vfs. rclone thinks the file is still being used. so it doesn't consider the file to upload. after I stop and restart seeding the file, then it starts to upload.

So an option like inactive_timeout=<time_in_seconds> will be really helpful. it will periodically check if a file is inactive for a particular time and will release the file descriptor once the inactive time surpasses the inactive_timeout option. Thanks.