Skip to content

Commit

Permalink
Fixes various typos
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
  • Loading branch information
luzpaz authored and arvidn committed Aug 24, 2023
1 parent b82b350 commit 63373cf
Show file tree
Hide file tree
Showing 68 changed files with 118 additions and 118 deletions.
44 changes: 22 additions & 22 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

2.0 released

* dropped depenency on iconv
* dropped dependency on iconv
* deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents
* deprecate mutable access to info_section in torrent_info
* removed deprecated lazy_entry/lazy_bdecode
Expand Down Expand Up @@ -270,7 +270,7 @@
* fix issue with moving the session object
* deprecate torrent_status::allocating. This state is no longer used
* fix bug creating torrents with symbolic links
* remove special case to save metadata in resume data unconditionally when added throught magnet link
* remove special case to save metadata in resume data unconditionally when added through magnet link
* fix bugs in mutable-torrent support (reusing identical files from different torrents)
* fix incorrectly inlined move-assignment of file_storage
* add session::paused flag, and the ability to construct a session in paused mode
Expand Down Expand Up @@ -324,7 +324,7 @@
* limit number of concurrent HTTP announces
* fix queue position for force_rechecking a torrent that is not auto-managed
* improve rate-based choker documentation, and minor tweak
* undeprecate upnp_ignore_nonrouters (but refering to devices on our subnet)
* undeprecate upnp_ignore_nonrouters (but referring to devices on our subnet)
* increase default tracker timeout
* retry failed socks5 server connections
* allow UPnP lease duration to be changed after device discovery
Expand Down Expand Up @@ -404,7 +404,7 @@
1.2.1 release

* add dht_pkt_alert and alerts_dropped_alert to python bindings
* fix python bindins for block_uploaded_alert
* fix python bindings for block_uploaded_alert
* optimize resolving duplicate filenames in loading torrent files
* fix python binding of dht_settings
* tighten up various input validation checks
Expand All @@ -413,7 +413,7 @@
* fix python bindings for peer_info
* support creating symlinks, for torrents with symlinks in them
* fix error in seed_mode flag
* support magnet link parameters with number siffixes
* support magnet link parameters with number suffixes
* consistently use "lt" namespace in examples and documentation
* fix Mingw build to use native cryptoAPI
* uPnP/NAT-PMP errors no longer set the client's advertised listen port to zero
Expand Down Expand Up @@ -607,7 +607,7 @@

* fix infinite loop when parsing certain invalid magnet links
* fix parsing of torrents with certain invalid filenames
* fix leak of torrent_peer objecs (entries in peer_list)
* fix leak of torrent_peer objects (entries in peer_list)
* fix leak of peer_class objects (when setting per-torrent rate limits)
* expose peer_class API to python binding
* fix integer overflow in whole_pieces_threshold logic
Expand Down Expand Up @@ -642,7 +642,7 @@
* fix proxying of https connections
* fix race condition in disk I/O storage class
* fix http connection timeout on multi-homed hosts
* removed depdendency on boost::uintptr_t for better compatibility
* removed dependency on boost::uintptr_t for better compatibility
* fix memory leak in the disk cache
* fix double free in disk cache
* forward declaring libtorrent types is discouraged. a new fwd.hpp header is provided
Expand Down Expand Up @@ -928,7 +928,7 @@
* tweak flag_override_resume_data semantics to make more sense (breaks
backwards compatibility of edge-cases)
* improve DHT bootstrapping and periodic refresh
* improve DHT maintanence performance (by pinging instead of full lookups)
* improve DHT maintenance performance (by pinging instead of full lookups)
* fix bug in DHT routing table node-id prefix optimization
* fix incorrect behavior of flag_use_resume_save_path
* fix protocol race-condition in super seeding mode
Expand Down Expand Up @@ -1111,7 +1111,7 @@
* fix piece-picker stat bug when only selecting some files for download
* fix bug in async_add_torrent when settings file_priorities
* fix boost-1.42 support for python bindings
* fix memory allocation issue (virtual addres space waste) on windows
* fix memory allocation issue (virtual address space waste) on windows

0.16.11 release

Expand All @@ -1127,7 +1127,7 @@
* GCC 4.8 fix
* fix proxy failure semantics with regards to anonymous mode
* fix round-robin seed-unchoke algorithm
* add bootstrap.sh to generage configure script and run configure
* add bootstrap.sh to generate configure script and run configure
* fix bug in SOCK5 UDP support
* fix issue where torrents added by URL would not be started immediately

Expand Down Expand Up @@ -1304,7 +1304,7 @@
* support banning web seeds sending corrupt data
* don't let hung outgoing connection attempts block incoming connections
* improve SSL torrent support by using SNI and a single SSL listen socket
* improved peer exchange performance by sharing incoming connections which advertize listen port
* improved peer exchange performance by sharing incoming connections which advertise listen port
* deprecate set_ratio(), and per-peer rate limits
* add web seed support for torrents with pad files
* introduced a more scalable API for torrent status updates (post_torrent_updates()) and updated client_test to use it
Expand Down Expand Up @@ -1696,7 +1696,7 @@ release 0.14.9

release 0.14.8

* ignore unkown metadata messages
* ignore unknown metadata messages
* fixed typo that would sometimes prevent queued torrents to be checked
* fixed bug in auto-manager where active_downloads and active_seeds would
sometimes be used incorrectly
Expand All @@ -1723,7 +1723,7 @@ release 0.14.7
ended with a /
* fixed bug in error handling when parsing torrent files
* fixed file checking bug when renaming a file before checking the torrent
* fixed race conditon when receiving metadata from swarm
* fixed race condition when receiving metadata from swarm
* fixed assert in ut_metadata plugin
* back-ported some fixes for building with no exceptions
* fixed create_torrent when passing in a path ending with /
Expand Down Expand Up @@ -1816,7 +1816,7 @@ release 0.14.3
* fixed issue where renamed files were sometimes not saved in resume data
* accepts tracker responses with no 'peers' field, as long as 'peers6'
is present
* fixed CIDR-distance calculation in the precense of IPv6 peers
* fixed CIDR-distance calculation in the presence of IPv6 peers
* save partial resume data for torrents that are queued for checking
or checking, to maintain stats and renamed files
* Don't try IPv6 on windows if it's not installed
Expand All @@ -1841,7 +1841,7 @@ release 0.14.2
tracker urls
* fixed bug where the files requested from web seeds would be the
renamed file names instead of the original file names in the torrent.
* documentation fix of queing section
* documentation fix of queueing section
* fixed potential issue in udp_socket (affected udp tracker support)
* made name, comment and created by also be subject to utf-8 error
correction (filenames already were)
Expand All @@ -1855,7 +1855,7 @@ release 0.14.2
* fixed race condition when saving DHT state
* fixed bugs related to lexical_cast being locale dependent
* added support for SunPro C++ compiler
* fixed bug where messeges sometimes could be encrypted in the
* fixed bug where messages sometimes could be encrypted in the
wrong order, for encrypted connections.
* fixed race condition where torrents could get stuck waiting to
get checked
Expand All @@ -1876,7 +1876,7 @@ release 0.14.1
sometimes quit when an error occurred
* fixed DHT bug
* fixed potential shutdown crash in disk_io_thread
* fixed usage of deprecated boost.filsystem functions
* fixed usage of deprecated boost.filesystem functions
* fixed http_connection unit test
* fixed bug in DHT when a DHT state was loaded
* made rate limiter change in 0.14 optional (to take estimated
Expand Down Expand Up @@ -1947,7 +1947,7 @@ release 0.14
* Disk cache support.
* New, more memory efficient, piece picker with sequential download
support (instead of the more complicated sequential download threshold).
* Auto Upload slots. Automtically opens up more slots if
* Auto Upload slots. Automatically opens up more slots if
upload limit is not met.
* Improved NAT-PMP support by querying the default gateway
* Improved UPnP support by ignoring routers not on the clients subnet.
Expand Down Expand Up @@ -2058,7 +2058,7 @@ release 0.12
* fixed bug in DHT code which would send incorrect announce messages.
* fixed bug where the http header parser was case sensitive to the header
names.
* Implemented an optmization which frees the piece_picker once a torrent
* Implemented an optimization which frees the piece_picker once a torrent
turns into a seed.
* Added support for uT peer exchange extension, implemented by Massaroddel.
* Modified the quota management to offer better bandwidth balancing
Expand Down Expand Up @@ -2088,9 +2088,9 @@ release 0.11
* fixed bug with file_progress() with files = 0 bytes
* fixed a race condition bug in udp_tracker_connection that could
cause a crash.
* fixed bug occuring when increasing the sequenced download threshold
* fixed bug occurring when increasing the sequenced download threshold
with max availability lower than previous threshold.
* fixed an integer overflow bug occuring when built with gcc 4.1.x
* fixed an integer overflow bug occurring when built with gcc 4.1.x
* fixed crasing bug when closing while checking a torrent
* fixed bug causing a crash with a torrent with piece length 0
* added an extension to the DHT network protocol to support the
Expand Down Expand Up @@ -2156,7 +2156,7 @@ release 0.10

release 0.9.1

* made the session disable file name checks within the boost.filsystem library
* made the session disable file name checks within the boost.filesystem library
* fixed race condition in the sockets
* strings that are invalid utf-8 strings are now decoded with the
local codepage on windows
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/error_code.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.

namespace boost
{
// this fixe mysterious link error on msvc
// this fixes mysterious link error on msvc
template <>
inline boost::system::error_category const volatile*
get_pointer(class boost::system::error_category const volatile* p)
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/gil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct visitor : boost::python::def_visitor<visitor<F>>
F fn;
};

// Member function adaptor that releases and aqcuires the GIL
// Member function adaptor that releases and acquires the GIL
// around the function call.
template <class F>
visitor<F> allow_threads(F fn)
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_replace_trackers(self):
self.assertEqual(new_trackers[1]['fail_limit'], 2)

def test_pickle_trackers(self):
"""Test lt objects convertors are working and trackers can be pickled"""
"""Test lt objects converters are working and trackers can be pickled"""
self.setup()
tracker = lt.announce_entry('udp://tracker1.com')
tracker.tier = 0
Expand Down
4 changes: 2 additions & 2 deletions docs/tuning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ session_stats_header_alert that will be posted on startup containing the column
for all metrics. Logging this line will greatly simplify interpreting the output,
and is required for the script to work out-of-the-box.

The python scrip in ``tools/parse_session_stats.py`` can parse the resulting
The python script in ``tools/parse_session_stats.py`` can parse the resulting
file and produce graphs of relevant stats. It requires gnuplot_.

.. _gnuplot: http://www.gnuplot.info
Expand Down Expand Up @@ -332,7 +332,7 @@ contributions
=============

If you have added instrumentation for some part of libtorrent that is not
covered here, or if you have improved any of the parser scrips, please consider
covered here, or if you have improved any of the parser scripts, please consider
contributing it back to the project.

If you have run tests and found that some algorithm or default value in
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrade_to_1.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ For example, the following expressions are deprecated::

atp.flags = 0;

Insted say::
Instead say::

if (!(atp.flags & torrent_flags::paused))

Expand Down
2 changes: 1 addition & 1 deletion examples/connection_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void generate_block(span<std::uint32_t> buffer, piece_index_t const piece
// in order to circumvent the restricton of only
// one connection per IP that most clients implement
// all sockets created by this tester are bound to
// uniqe local IPs in the range (127.0.0.1 - 127.255.255.255)
// unique local IPs in the range (127.0.0.1 - 127.255.255.255)
// it's only enabled if the target is also on the loopback
int local_if_counter = 0;
bool local_bind = false;
Expand Down
4 changes: 2 additions & 2 deletions examples/torrent_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ void torrent_view::print_torrent(lt::torrent_status const& s, bool selected)
std::array<char, 512> str;
lt::span<char> dest(str);

// the active torrent is highligted in the list
// this inverses the forground and background colors
// the active torrent is highlighted in the list
// this inverses the foreground and background colors
char const* selection = "";
if (selected)
selection = "\x1b[1m\x1b[44m";
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace libtorrent { namespace aux {

// reads an integer from a byte stream
// in big endian byte order and converts
// it to native endianess
// it to native endianness
template <class T, class Byte>
inline typename std::enable_if<sizeof(Byte)==1, T>::type
read_impl(span<Byte>& view, type<T>)
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/merkle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ namespace libtorrent {
// layer that can be verified, and the root_index is the node that needs to
// be known in (tree) to do so. The num_valid_leafs specifies how many of
// the leafs that are actually *supposed* to be non-zero. Any leafs beyond
// thses are padding and expected to be zero.
// these are padding and expected to be zero.
// The caller must validate the hash at root_index.
TORRENT_EXTRA_EXPORT
std::tuple<int, int, int> merkle_find_known_subtree(span<sha256_hash const> const tree
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/merkle_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ struct TORRENT_EXTRA_EXPORT merkle_tree
aux::vector<sha256_hash> m_tree;

// when the full tree is allocated, this has one bit for each block hash. a
// 1 means we have verified the block hash to be corret, otherwise the block
// 1 means we have verified the block hash to be correct, otherwise the block
// hash may represent what's on disk, but we haven't been able to verify it
// yet
bitfield m_block_verified;
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/resolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct TORRENT_EXTRA_EXPORT resolver final : resolver_interface
time_duration m_timeout;

// the callbacks to call when a host resolution completes. This allows to
// attach more callbacks if the same host is looked up mutliple times
// attach more callbacks if the same host is looked up multiple times
std::multimap<std::string, resolver_interface::callback_t> m_callbacks;
};

Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/resolver_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct TORRENT_EXTRA_EXPORT resolver_interface
using callback_t = std::function<void(error_code const&, std::vector<address> const&)>;

// this flag will make async_resolve() only use the cache and fail if we
// don't have a cache entry, regardless of how old it is. This is usefull
// don't have a cache entry, regardless of how old it is. This is useful
// when completing the lookup quickly is more important than accuracy,
// like on shutdown
static constexpr resolver_flags cache_only = 0_bit;
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/session_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ namespace aux {
}

// 0 is natpmp 1 is upnp
// the order of these arrays determines the priorty in
// the order of these arrays determines the priority in
// which their ports will be announced to peers
aux::array<listen_port_mapping, 2, portmap_transport> tcp_port_mapping;
aux::array<listen_port_mapping, 2, portmap_transport> udp_port_mapping;
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/utp_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ struct TORRENT_EXTRA_EXPORT utp_stream
}

#if BOOST_VERSION >= 106600
// Compatiblity with the async_wait method introduced in boost 1.66
// Compatibility with the async_wait method introduced in boost 1.66

enum wait_type { wait_read, wait_write, wait_error };

Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace aux {

// reads an integer from a byte stream
// in big endian byte order and converts
// it to native endianess
// it to native endianness
template <class T, class InIt>
inline T read_impl(InIt& start, type<T>)
{
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/kademlia/refresh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class bootstrap : public get_peers

};

} // namesapce dht
} // namespace dht
} // namespace libtorrent

#endif // REFRESH_050324_HPP
2 changes: 1 addition & 1 deletion include/libtorrent/mmap_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ namespace aux {
// serialized on a per-file basis. See github issue #3842 for details.

// This array stores a mutex for each file in the storage object
// It must be aquired before calling CreateFileMapping or UnmapViewOfFile
// It must be acquired before calling CreateFileMapping or UnmapViewOfFile
mutable std::shared_ptr<std::mutex> m_file_open_unmap_lock;
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/peer_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ namespace aux {
// returns the block currently being
// downloaded. And the progress of that
// block. If the peer isn't downloading
// a piece for the moment, implementors
// a piece for the moment, implementers
// must return an object with the piece_index
// value invalid (the default constructor).
virtual piece_block_progress downloading_piece_progress() const;
Expand Down
4 changes: 2 additions & 2 deletions include/libtorrent/piece_picker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ namespace libtorrent {
// blocks covered by the pad bytes are not picked by the piece picker
std::unordered_map<piece_index_t, int> m_pads_in_piece;

// when the adjecent_piece affinity is enabled, this contains the most
// recent "extents" of adjecent pieces that have been requested from
// when the adjacent_piece affinity is enabled, this contains the most
// recent "extents" of adjacent pieces that have been requested from
// this is mutable because it's updated by functions to pick pieces, which
// are const. That's an efficient place to update it, since it's being
// traversed already.
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/proxy_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct proxy_base
}

#if BOOST_VERSION >= 106600 && !defined TORRENT_BUILD_SIMULATOR
// Compatiblity with the async_wait method introduced in boost 1.66
// Compatibility with the async_wait method introduced in boost 1.66

static constexpr auto wait_read = tcp::socket::wait_read;
static constexpr auto wait_write = tcp::socket::wait_write;
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/socks5_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class socks5_stream : public proxy_base

void set_dst_name(std::string const& host)
{
// if this assert trips, set_dst_name() is called wth an IP address rather
// if this assert trips, set_dst_name() is called with an IP address rather
// than a hostname. Instead, resolve the IP into an address and pass it to
// async_connect instead
TORRENT_ASSERT(!aux::is_ip_address(host));
Expand Down
Loading

0 comments on commit 63373cf

Please sign in to comment.