Skip to content

Commit

Permalink
default TOS marking to 0x04 (LE)
Browse files Browse the repository at this point in the history
RFC 8622 has added a new "Lower Effort" codepoint to supersede 0x20
(CS1), avoiding the potential problem with CS1 being interpreted as
higher precedence than default.

Use of LE rather than CS1 is now recommended:

    Existing implementations SHOULD transition to use the unambiguous
    LE codepoint '000001' whenever possible.
  • Loading branch information
kjbracey2 authored and arvidn committed Jan 9, 2022
1 parent 9a73ab7 commit 3d701c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/libtorrent/settings_pack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,10 +1152,9 @@ namespace aux {

// ``peer_tos`` determines the TOS byte set in the IP header of every
// packet sent to peers (including web seeds). ``0x0`` means no marking,
// ``0x20`` represents the *QBone scavenger service*. For more
// details, see QBSS_.
// ``0x04`` represents Lower Effort. For more details see `RFC 8622`_.
//
// .. _`QBSS`: http://qbone.internet2.edu/qbss/
// .. _`RFC 8622`: http://www.faqs.org/rfcs/rfc8622.html
peer_tos,

// for auto managed torrents, these are the limits they are subject
Expand Down
2 changes: 1 addition & 1 deletion src/settings_pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ constexpr int CLOSE_FILE_INTERVAL = 0;
SET(disk_io_read_mode, settings_pack::enable_os_cache, nullptr),
SET(outgoing_port, 0, nullptr),
SET(num_outgoing_ports, 0, nullptr),
SET(peer_tos, 0x20, &session_impl::update_peer_tos),
SET(peer_tos, 0x04, &session_impl::update_peer_tos),
SET(active_downloads, 3, &session_impl::trigger_auto_manage),
SET(active_seeds, 5, &session_impl::trigger_auto_manage),
SET(active_checking, 1, &session_impl::trigger_auto_manage),
Expand Down

0 comments on commit 3d701c7

Please sign in to comment.