IntSetting
The integer-typed session settings: a port of settings_pack::int_types (settings_pack.hpp) together with the int_settings default-value table from settings_pack.cpp.
Each constant is a full 16-bit setting key (int_type_base | index). The index positions are kept byte-identical to libtorrent, including every deprecated slot (old disk-cache sizes, BitTyrant rates, half-open limit, …). Deprecated slots get no named constant but still occupy their index in IntSettingDefaults.
Two platform-conditional defaults are resolved to their non-Windows values (the portable default for KiteTorrent's multiplatform targets):
disk_io_write_mode->IoBufferMode.ENABLE_OS_CACHE (Windows useswrite_through)close_file_interval-> 0 (Windows uses 240)
Properties
Limit on simultaneously checking torrents.
Max torrents announced to the DHT.
Upper limit on active downloading torrents (auto-managed); -1 = unlimited.
Hard limit on active (auto-managed) torrents.
Max torrents announced over local service discovery.
Upper limit on active seeding torrents (auto-managed); -1 = unlimited.
Max torrents announced to their trackers.
Number of aio (disk) I/O threads.
Bitmask of alert_category_t flags selecting which alerts to receive.
Max alerts queued internally before new alerts are dropped.
Allowed encryption level; see EncLevel.
Number of allowed-fast pieces offered to fast-extension peers.
port parameter sent to remote trackers (0 = use the listening port).
Seconds between auto-manage queue updates/rotations.
Seconds a freshly-started torrent stays considered active regardless of rate.
Seconds between scrapes of queued torrents.
Minimum seconds between any automatic scrape.
Outstanding 16 KiB blocks while checking torrents.
Downloading-unchoke algorithm; see ChokingAlgorithm.
Seconds between closing the longest-open file (0 = disabled; portable default).
Every n:th connection attempt is given to a finished torrent.
Connection attempts per second; 0 means no outgoing connections.
Global limit on open connections (min 2 per torrent regardless).
Incoming connections accepted above the limit to potentially replace existing ones.
Seconds between DHT announces.
Max packets/s a DHT node may send without being banned.
Seconds a DHT node is banned after exceeding the rate limit.
Seconds an (im)mutable DHT item lives (0 = never expires).
Max items the DHT will store.
Max failed contact attempts before a DHT node is removed.
Max elements in the sampled info-hashes subset.
Max peers stored per torrent in the DHT.
Max peers returned in a DHT get_peers reply.
Max torrents returned in a DHT torrent-search reply.
Upper limit on torrents tracked from the DHT.
Info-hashes sample recomputation interval, in seconds (0..21600).
DHT search branching factor (alpha in the Kademlia paper).
Average bytes/s the DHT may send.
Read-mode file open behaviour; see IoBufferMode.
How files are opened in read-only vs read/write mode; see IoBufferMode.
mmap-vs-pwrite disk-write mode (mmap_disk_io only); see MmapWriteMode.
Session-global download rate limit in bytes/s (0 = unlimited).
Upper limit on simultaneously open files this session keeps.
Seconds to wait for a handshake response.
Disk I/O threads dedicated to piece-hash verification (full checks).
i2p inbound tunnel hop count 0..7.
Variance for i2p inbound tunnel length -7..7.
i2p inbound tunnel quantity 1..16.
i2p outbound tunnel hop count 0..7.
Variance for i2p outbound tunnel length -7..7.
i2p outbound tunnel quantity 1..16.
Incoming-connection encryption policy; see EncPolicy.
Download-rate threshold (bytes/s) under which a torrent counts as inactive.
Upload-rate threshold (bytes/s) under which a torrent counts as inactive.
Seconds a mutually-uninterested peer stays before disconnect.
Pieces picked at random before switching to rarest-first.
Backlog passed to listen() for the listen socket.
Seconds between local-network announces for a torrent.
Max outstanding block requests a peer may queue in us.
Max concurrent HTTP tracker announces.
Max connection attempts to a peer before giving up.
Max bytes for an HTTP response when announcing or fetching a .torrent.
Max bytes accepted by the metadata (magnet) extension.
Max outstanding requests we send to a peer (overrides REQUEST_QUEUE_TIME).
Max peer-list size for paused torrents.
Max bytes a single peer connection's receive buffer may grow to.
Max known peers in the peer list (0 = unlimited).
Max peers accepted from a single peer's PEX message.
Max pieces in metadata received via magnet links.
Max bytes queued for the disk-write thread before peers stop reading sockets.
Consecutive rejected requests from a choked peer before it's deemed abusive.
Times to retry a failed port bind (incrementing the port).
Max remembered suggested piece indices from a peer.
Max web seeds connected per torrent.
Max bencoded tokens parsed when receiving metadata from peers.
Minimum allowed tracker announce interval (sanity clamp), in seconds.
Seconds to wait before reconnecting (multiplied by failcount).
TCP-vs-uTP bandwidth balancing mode; see MixedModeAlgorithm.
Files smaller than this many 16 KiB blocks are not memory-mapped.
NAT-PMP / PCP port-mapping lease duration in seconds.
Number of optimistic-unchoke slots (0 = automatic, 20% of upload slots).
Size of the outgoing-port range starting at OUTGOING_PORT.
Seconds from a disk write error until upload-only mode is retried.
Seconds between optimistic unchokes.
Outgoing-connection encryption policy; see EncPolicy.
First port for binding outgoing connections (0 = OS-chosen).
Seconds after initiating a connection before it times out.
Seconds of peer-connection inactivity before timing it out (protocol: 120).
Percentage of peers to disconnect on each turnover interval.
Connection-fill percentage above which turnover disconnects kick in.
Seconds between optimistic turnover disconnects.
Seconds until a piece request times out with no response.
Milliseconds in advance to announce pieces before completion (0 = off).
Proxy server port.
Proxy type; see ProxyType.
Start threshold for the rate-based choker.
Socket receive-buffer size (SO_RCVBUF); 0 = OS default.
Target request-queue length expressed in seconds of transfer.
Seconds one 16 KiB block is expected within before re-requesting elsewhere.
Seconds before a host-name resolver cache entry is considered stale.
Seeding-unchoke algorithm; see SeedChokingAlgorithm.
Seconds of active seeding before the seed-time criterion is met.
Seed-time-ratio (seed/leech seconds) percentage at which a seed is considered done.
Pieces to send a peer while seeding before rotating the unchoke set.
Minimum send-buffer target size in bytes (initial window).
Upper bound on the send-buffer watermark in bytes.
Percentage factor applied to upload rate to compute the send-buffer watermark.
Not-sent low watermark for socket send buffers (TCP_NOTSENT_LOWAT).
Socket send-buffer size (SO_SNDBUF); 0 = OS default.
Target share ratio for share-mode torrents (e.g. 3 = upload 3x download).
Share-ratio (up/down) percentage at which a seed is considered done.
Seconds to wait for a stopped message; 0 suppresses stop announces.
Suggest-message mode; see SuggestMode.
Milliseconds between internal ticks (bandwidth-quota distribution).
Peers connected immediately on the first tracker response (<= 255).
Aggressiveness of tracker retry back-off (the x in the back-off formula).
Seconds before a tracker request is considered timed out (from sending).
Max bytes (uncompressed) accepted in a tracker response.
Seconds with no data from a tracker before it times out.
Seconds UDP-tracker connection tokens are kept (protocol: 60).
Seconds between choke/unchoke re-evaluation (protocol: 30).
Max unchoked peers in the session (-1 = unlimited).
Session-global upload rate limit in bytes/s (0 = unlimited).
UPnP port-mapping lease duration in seconds (0 = permanent).
Largest sequential web-seed request in bytes.
HTTP request pipelining depth for url/http seeds.
Like PEER_TIMEOUT but for url-seeds (usually lower).
Default seconds before retrying an http-seed lacking a retry-after header.
Milliseconds timeout for the initial uTP SYN (doubles per timeout).
Milliseconds to hold the uTP cwnd reduction after packet loss.
FIN packets resent before giving up closing a uTP socket.
Max bytes the uTP congestion window can grow per RTT.
Percentage multiplier for cwnd on uTP packet loss (never > 100).
Shortest allowed uTP socket timeout in milliseconds.
Times a uTP packet is resent before closing the connection.
SYN packets sent (and timed out) before giving up a uTP connect.
Target uTP delay in milliseconds.
Seconds before retrying a web-seed name lookup.
If a whole piece downloads within this many seconds, prefer whole-piece requests.