Skip to content

Commit

Permalink
Force pwrite to avoid RAM explosion
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Mar 10, 2025
1 parent f551700 commit 3536c98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def create_session(self, hops: int = 0) -> lt.session: # noqa: PLR0915
"allow_i2p_mixed": 1,
"announce_to_all_tiers": int(self.config.get("libtorrent/announce_to_all_tiers")),
"announce_to_all_trackers": int(self.config.get("libtorrent/announce_to_all_trackers")),
"max_concurrent_http_announces": int(self.config.get("libtorrent/max_concurrent_http_announces"))
"max_concurrent_http_announces": int(self.config.get("libtorrent/max_concurrent_http_announces")),
"disk_write_mode": 0 # always_pwrite
}

# Copy construct so we don't modify the default list
Expand Down

0 comments on commit 3536c98

Please sign in to comment.