diff --git a/docs/manual.html b/docs/manual.html
index ee9f7e01c..968c0be0a 100755
--- a/docs/manual.html
+++ b/docs/manual.html
@@ -348,6 +348,9 @@ want to download.
It uses Boost.Thread, Boost.Filesystem, Boost.Date_time and various other
boost libraries as well as zlib (shipped) and asio (shipped). At least version
1.33.1 of boost is required.
+Since libtorrent uses asio, it will take full advantage of high performance
+network APIs on the most popular platforms. I/O completion ports on windows,
+epoll on linux and kqueue on MacOS X and BSD.
libtorrent has been successfully compiled and tested on:
@@ -367,6 +370,10 @@ boost libraries as well as zlib<
libtorrent is released under the BSD-license.
+This means that you can use the library in your project without having to
+release its source code. The only requirement is that you give credit
+to the author of the library by including the libtorrent licence in your
+software or documentation.
@@ -2274,7 +2281,7 @@ the threshold is 7, all pieces which 7 or more peers have, will be downloaded
in index order.
max_allowed_in_request_queue is the number of outstanding block requests
a peer is allowed to queue up in the client. If a peer sends more requests
-than this (before the first one has been sent) the last request will be
+than this (before the first one has been handled) the last request will be
dropped. The higher this is, the faster upload speeds the client can get to a
single peer.
max_out_request_queue is the maximum number of outstanding requests to
@@ -2282,10 +2289,11 @@ send to a peer. This limit takes precedence over
whole_pieces_threshold is a limit in seconds. if a whole piece can be
-downloaded in this number of seconds, or less, the peer_connection will prefer
-to request whole pieces at a time from this peer. The benefit of this is to
-better utilize disk caches by doing localized accesses and also to make it
-easier to identify bad peers if a piece fails the hash check.
+downloaded in at least this number of seconds from a specific peer, the
+peer_connection will prefer requesting whole pieces at a time from this peer.
+The benefit of this is to better utilize disk caches by doing localized
+accesses and also to make it easier to identify bad peers if a piece fails
+the hash check.
diff --git a/docs/manual.rst b/docs/manual.rst
index dcf4d0ce4..2b21b6491 100755
--- a/docs/manual.rst
+++ b/docs/manual.rst
@@ -70,7 +70,6 @@ __ http://www.getright.com/seedtorrent.html
__ extension_protocol.html
__ udp_tracker_protocol.html
-
libtorrent is portable at least among Windows, MacOS X and other UNIX-systems.
It uses Boost.Thread, Boost.Filesystem, Boost.Date_time and various other
boost libraries as well as zlib_ (shipped) and asio_ (shipped). At least version
@@ -79,6 +78,10 @@ boost libraries as well as zlib_ (shipped) and asio_ (shipped). At least version
.. _zlib: http://www.zlib.org
.. _asio: http://asio.sf.net
+Since libtorrent uses asio, it will take full advantage of high performance
+network APIs on the most popular platforms. I/O completion ports on windows,
+epoll on linux and kqueue on MacOS X and BSD.
+
libtorrent has been successfully compiled and tested on:
* Windows 2000 vc7.1
@@ -97,6 +100,11 @@ libtorrent is released under the BSD-license_.
.. _BSD-license: http://www.opensource.org/licenses/bsd-license.php
+This means that you can use the library in your project without having to
+release its source code. The only requirement is that you give credit
+to the author of the library by including the libtorrent licence in your
+software or documentation.
+
downloading and building
========================
@@ -2153,7 +2161,7 @@ in index order.
``max_allowed_in_request_queue`` is the number of outstanding block requests
a peer is allowed to queue up in the client. If a peer sends more requests
-than this (before the first one has been sent) the last request will be
+than this (before the first one has been handled) the last request will be
dropped. The higher this is, the faster upload speeds the client can get to a
single peer.
@@ -2163,10 +2171,11 @@ no matter the download speed, the number of outstanding requests will never
exceed this limit.
``whole_pieces_threshold`` is a limit in seconds. if a whole piece can be
-downloaded in this number of seconds, or less, the peer_connection will prefer
-to request whole pieces at a time from this peer. The benefit of this is to
-better utilize disk caches by doing localized accesses and also to make it
-easier to identify bad peers if a piece fails the hash check.
+downloaded in at least this number of seconds from a specific peer, the
+peer_connection will prefer requesting whole pieces at a time from this peer.
+The benefit of this is to better utilize disk caches by doing localized
+accesses and also to make it easier to identify bad peers if a piece fails
+the hash check.
ip_filter
diff --git a/include/libtorrent/session.hpp b/include/libtorrent/session.hpp
index bcef51ad1..451f1ac42 100755
--- a/include/libtorrent/session.hpp
+++ b/include/libtorrent/session.hpp
@@ -208,6 +208,11 @@ namespace libtorrent
boost::weak_ptr
find_torrent(const sha1_hash& info_hash);
peer_id const& get_peer_id() const { return m_peer_id; }
+ // this is where all active sockets are stored.
+ // the selector can sleep while there's no activity on
+ // them
+ demuxer m_selector;
+
tracker_manager m_tracker_manager;
torrent_map m_torrents;
@@ -259,11 +264,6 @@ namespace libtorrent
// interface to listen on
tcp::endpoint m_listen_interface;
- // this is where all active sockets are stored.
- // the selector can sleep while there's no activity on
- // them
- demuxer m_selector;
-
boost::shared_ptr m_listen_socket;
// the entries in this array maps the