Phil Rosenthal bb8d677f6e Fix file descriptor leak in session file saving
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.
2025-06-18 19:00:56 +02:00
2025-06-05 20:29:43 +09:00
2025-06-05 16:29:12 +02:00
2025-06-05 14:33:28 +02:00
2025-06-01 15:40:22 +02:00
2014-09-15 16:03:10 +09:00
2005-01-25 18:47:10 +00:00
2025-06-05 14:33:28 +02:00
2005-01-25 18:47:10 +00:00
2005-01-25 18:47:10 +00:00
2024-09-29 11:06:14 +00:00

Donate

RTorrent BitTorrent Client

Introduction

To learn how to use rTorrent visit the Wiki.

Stable

Unstable

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.

S
Description
Languages
C++ 93.4%
M4 6%
Makefile 0.3%
Lua 0.2%
C 0.1%