diff --git a/Makefile.am b/Makefile.am index 45d7fe1fb..0359e3adb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,8 @@ SUBDIRS = include @ZLIBDIR@ src examples test -EXTRA_DIST = docs Jamfile project-root.jam \ +EXTRA_DIST = docs/manual.html docs/manual.rst docs/extension_protocol.rst \ +docs/extension_protocol.html docs/udp_tracker_protocol.rst \ +docs/udp_tracker_protocol.html docs/client_test.rst docs/client_test.html \ +docs/unicode_support.png docs/client_test.png docs/style.css Jamfile project-root.jam \ m4/ac_cxx_namespaces.m4 m4/acx_pthread.m4 m4/ax_boost_date-time.m4 \ m4/ax_boost_filesystem.m4 m4/ax_boost_thread.m4 src/file_win.cpp libtorrent.pc diff --git a/docs/manual.html b/docs/manual.html index 2093b8319..74d2de0c9 100755 --- a/docs/manual.html +++ b/docs/manual.html @@ -39,123 +39,124 @@
+++void set_max_half_open_connections(int limit); ++
Sets the maximum number of half-open connections libtorrent will have when +connecting to peers. A half-open connection is one where connect() has been +called, but the connection still hasn't been established (nor filed). Windows +XP Service Pack 2 sets a defaul, system wide, limit of the number of half-open +connections to 10. So, this limit can be used to work nicer together with +other network applications on that system. The default is to have no limit, +and passing -1 as the limit, means to have no limit. When limiting the number +of simultaneous connection attempts, peers will be put in a queue waiting for +their turn to get connected.
+diff --git a/docs/manual.rst b/docs/manual.rst index 08dee17ba..d571b6255 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -489,6 +489,7 @@ The ``session`` class has the following synopsis:: void set_download_rate_limit(int bytes_per_second); void set_max_uploads(int limit); void set_max_connections(int limit); + void set_max_half_open_connections(int limit); void set_ip_filter(ip_filter const& f); @@ -657,6 +658,24 @@ connections limit, and open too many torrents, the limit will not be met. The number of uploads is at least one per torrent. +set_max_half_open_connections() +------------------------------- + + :: + + void set_max_half_open_connections(int limit); + +Sets the maximum number of half-open connections libtorrent will have when +connecting to peers. A half-open connection is one where connect() has been +called, but the connection still hasn't been established (nor filed). Windows +XP Service Pack 2 sets a defaul, system wide, limit of the number of half-open +connections to 10. So, this limit can be used to work nicer together with +other network applications on that system. The default is to have no limit, +and passing -1 as the limit, means to have no limit. When limiting the number +of simultaneous connection attempts, peers will be put in a queue waiting for +their turn to get connected. + + set_ip_filter() ---------------