mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
bb8d677f6e68c5c82426dc2930b9a5a9f1113a86
When system.files.session.fdatasync is set to "no", file descriptors were not being closed after writing session files, causing a severe resource leak. Each save operation would leak one file descriptor. With hundreds of torrents, this leads to tens of thousands of leaked file descriptors within hours, mostly pointing to deleted session files. This can exhaust the system's file descriptor limit and cause rtorrent to fail when opening new files. The fix moves the close() call outside the fdatasync conditional block, ensuring file descriptors are always properly closed regardless of the fdatasync setting.
RTorrent BitTorrent Client
Introduction
To learn how to use rTorrent visit the Wiki.
Stable
- https://github.com/rakshasa/rtorrent-archive/raw/master/libtorrent-0.13.8.tar.gz
- https://github.com/rakshasa/rtorrent-archive/raw/master/rtorrent-0.9.8.tar.gz
Unstable
- https://github.com/rakshasa/rtorrent-archive/raw/master/libtorrent-0.14.0.tar.gz
- https://github.com/rakshasa/rtorrent-archive/raw/master/rtorrent-0.10.0.tar.gz
Related Projects
- https://github.com/rakshasa/rbedit: A dependency-free bencode editor.
Donate to rTorrent development
- Paypal
- Patreon
- SubscribeStar
- Bitcoin: 1MpmXm5AHtdBoDaLZstJw8nupJJaeKu8V8
- Ethereum: 0x9AB1e3C3d8a875e870f161b3e9287Db0E6DAfF78
- Litecoin: LdyaVR67LBnTf6mAT4QJnjSG2Zk67qxmfQ
- Cardano: addr1qytaslmqmk6dspltw06sp0zf83dh09u79j49ceh5y26zdcccgq4ph7nmx6kgmzeldauj43254ey97f3x4xw49d86aguqwfhlte
Help keep rTorrent development going by donating to its creator.
Description
Languages
C++
93.4%
M4
6%
Makefile
0.3%
Lua
0.2%
C
0.1%