From 45696b60d2cbadbbd19eb504054a14e061b5290e Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Tue, 13 Aug 2024 07:47:34 +0800 Subject: [PATCH] fix: `settings.json` default value and docs (#7044) * docs: fix `message-level` default * docs: fix `peer-socket-tos` description * fix: restore `rename-partial-files` default value --- docs/Editing-Configuration-Files.md | 4 ++-- libtransmission/session.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Editing-Configuration-Files.md b/docs/Editing-Configuration-Files.md index af5c5e524..41d9015e9 100644 --- a/docs/Editing-Configuration-Files.md +++ b/docs/Editing-Configuration-Files.md @@ -77,7 +77,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri * **dht-enabled:** Boolean (default = true) Enable [Distributed Hash Table (DHT)](https://wiki.theory.org/BitTorrentSpecification#Distributed_Hash_Table). * **encryption:** Number (0 = Prefer unencrypted connections, 1 = Prefer encrypted connections, 2 = Require encrypted connections; default = 1) [Encryption](https://wiki.vuze.com/w/Message_Stream_Encryption) preference. Encryption may help get around some ISP filtering, but at the cost of slightly higher CPU use. * **lpd-enabled:** Boolean (default = false) Enable [Local Peer Discovery (LPD)](https://en.wikipedia.org/wiki/Local_Peer_Discovery). - * **message-level:** Number (0 = None, 1 = Critical, 2 = Error, 3 = Warn, 4 = Info, 5 = Debug, 6 = Trace; default = 2) Set verbosity of Transmission's log messages. + * **message-level:** Number (0 = None, 1 = Critical, 2 = Error, 3 = Warn, 4 = Info, 5 = Debug, 6 = Trace; default = 4) Set verbosity of Transmission's log messages. * **pex-enabled:** Boolean (default = true) Enable [Peer Exchange (PEX)](https://en.wikipedia.org/wiki/Peer_exchange). * **pidfile:** String Path to file in which daemon PID will be stored (_transmission-daemon only_) * **scrape-paused-torrents-enabled:** Boolean (default = true) @@ -100,7 +100,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri * **peer-congestion-algorithm:** String. This is documented on https://www.pps.jussieu.fr/~jch/software/bittorrent/tcp-congestion-control.html. * **peer-limit-global:** Number (default = 200) * **peer-limit-per-torrent:** Number (default = 50) - * **peer-socket-tos:** String (default = "default") Set the [Type-Of-Service (TOS)](https://en.wikipedia.org/wiki/Type_of_Service) parameter for outgoing TCP packets. Possible values are "default", "lowcost", "throughput", "lowdelay" and "reliability". The value "lowcost" is recommended if you're using a smart router, and shouldn't harm in any case. + * **peer-socket-tos:** String (default = "le") Set the [DiffServ](https://en.wikipedia.org/wiki/Differentiated_services) parameter for outgoing packets. Allowed values are lowercase DSCP names. See the `tr_tos_t` class from `libtransmission/net.h` for the exact list of possible values. #### Peer Port * **peer-port:** Number (default = 51413) diff --git a/libtransmission/session.h b/libtransmission/session.h index 25c8871ff..572e53dc8 100644 --- a/libtransmission/session.h +++ b/libtransmission/session.h @@ -373,7 +373,7 @@ public: bool download_queue_enabled = true; bool idle_seeding_limit_enabled = false; bool incomplete_dir_enabled = false; - bool is_incomplete_file_naming_enabled = false; + bool is_incomplete_file_naming_enabled = true; bool lpd_enabled = true; bool peer_port_random_on_start = false; bool pex_enabled = true;