We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d22c44c + 08e861c commit 4c4c630Copy full SHA for 4c4c630
.travis.yml
@@ -105,10 +105,7 @@ install:
105
- 'if [[ $toolset == "gcc-arm" ]]; then
106
echo "using gcc : arm : ccache armv8l-linux-gnueabihf-g++ : <cxxflags>\"-std=c++11 -fsigned-char -march=armv8-a+crc -mfpu=crypto-neon-fp-armv8 -DTORRENT_FORCE_ARM_CRC32\" <linkflags>-lm ;" >> ~/user-config.jam;
107
fi;'
108
- - 'echo "using darwin : : ccache clang++ :
109
- <cxxflags>-I/usr/local/opt/openssl/include
110
- <linkflags>-L/usr/local/opt/openssl/lib
111
- <cxxflags>-std=c++11 ;" >> ~/user-config.jam'
+ - 'echo "using darwin : : ccache clang++ : <cxxflags>-std=c++11 ;" >> ~/user-config.jam'
112
- 'echo "using python : 2.7 ;" >> ~/user-config.jam'
113
- if [ "$docs" == "1" ]; then /Users/travis/Library/Python/2.7/bin/rst2html.py --version; fi
114
- 'if [ "$lint" == "1" ]; then curl "https://raw.githubusercontent.com/google/styleguide/71ec7f1e524969c19ce33cfc72e8e023f2b98ee2/cpplint/cpplint.py" >~/cpplint.py; fi'
ChangeLog
@@ -79,6 +79,7 @@
79
80
1.1.5 release
81
82
+ * fix integer overflow in whole_pieces_threshold logic
83
* fix uTP path MTU discovery issue on windows (DF bit was not set correctly)
84
* fix python binding for torrent_handle, to be hashable
85
* fix IPv6 tracker support by performing the second announce in more cases
Jamfile
@@ -533,10 +533,15 @@ lib gcc : : <name>gcc <link>static ;
533
# when using iconv
534
lib libiconv : : <name>iconv <link>shared <search>/usr/local/lib ;
535
536
-# openssl on linux/bsd/macos etc.
537
-lib gcrypt : : <name>gcrypt <link>shared <search>/usr/local/lib : : <include>/usr/local/include ;
538
-lib crypto : : <name>crypto <link>shared ;
539
-lib ssl : : <name>ssl <link>shared <use>crypto ;
+# openssl on linux/bsd etc.
+lib gcrypt : : <name>gcrypt <link>shared <search>/opt/local/lib ;
+
+# pick up openssl on macos from brew
540
+lib crypto : : <name>crypto <target-os>darwin <search>/usr/local/opt/openssl/lib : <link>shared : <include>/usr/local/opt/openssl/include ;
541
+lib ssl : : <name>ssl <use>crypto <target-os>darwin <search>/usr/local/opt/openssl/lib : <link>shared : <include>/usr/local/opt/openssl/include ;
542
543
+lib crypto : : <name>crypto : <link>shared ;
544
+lib ssl : : <name>ssl <use>crypto : <link>shared ;
545
546
lib libsocket : : <use>libnsl <name>socket <link>shared <search>/usr/sfw/lib <link>shared ;
547
lib libnsl : : <name>nsl <link>shared <search>/usr/sfw/lib <link>shared ;
docs/template.txt
@@ -56,7 +56,7 @@
56
<td><a href="streaming.html">streaming</a></td>
57
</tr>
58
<tr>
59
- <td><a href="http://code.google.com/p/libtorrent/issues/entry">report a bug</a></td>
+ <td><a href="https://github.com/arvidn/libtorrent/issues">report a bug</a></td>
60
<td><a href="building.html">building</a></td>
61
<td><a href="bittorrent.pdf">bittorrent slides</a></td>
62
docs/template2.txt
@@ -67,7 +67,7 @@
67
68
69
70
71
72
73
include/libtorrent/alert_types.hpp
@@ -908,7 +908,7 @@ namespace libtorrent {
908
storage_moved_alert(aux::stack_allocator& alloc
909
, torrent_handle const& h, string_view p);
910
911
- TORRENT_DEFINE_ALERT(storage_moved_alert, 33)
+ TORRENT_DEFINE_ALERT_PRIO(storage_moved_alert, 33)
912
913
static constexpr alert_category_t static_category = alert::storage_notification;
914
std::string message() const override;
@@ -933,7 +933,7 @@ namespace libtorrent {
933
, torrent_handle const& h, error_code const& e, string_view file
934
, operation_t op);
935
936
- TORRENT_DEFINE_ALERT(storage_moved_failed_alert, 34)
+ TORRENT_DEFINE_ALERT_PRIO(storage_moved_failed_alert, 34)
937
938
939
include/libtorrent/settings_pack.hpp
@@ -1509,8 +1509,10 @@ namespace libtorrent {
1509
// when a seeding torrent reaches either the share ratio (bytes up /
1510
// bytes down) or the seed time ratio (seconds as seed / seconds as
1511
// downloader) or the seed time limit (seconds as seed) it is
1512
- // considered done, and it will leave room for other torrents these
1513
- // are specified as percentages
+ // considered done, and it will leave room for other torrents. These
+ // are specified as percentages. Torrents that are considered done will
1514
+ // still be allowed to be seeded, they just won't have priority anymore.
1515
+ // For more, see queuing_.
1516
share_ratio_limit,
1517
seed_time_ratio_limit,
1518
src/request_blocks.cpp
@@ -113,12 +113,16 @@ namespace libtorrent {
int prefer_contiguous_blocks = c.prefer_contiguous_blocks();
115
116
- if (prefer_contiguous_blocks == 0 && !time_critical_mode)
+ if (prefer_contiguous_blocks == 0
117
+ && !time_critical_mode
118
+ && t.settings().get_int(settings_pack::whole_pieces_threshold) > 0)
119
{
- int blocks_per_piece = t.torrent_file().piece_length() / t.block_size();
- prefer_contiguous_blocks = c.statistics().download_payload_rate()
120
- * t.settings().get_int(settings_pack::whole_pieces_threshold)
121
- > t.torrent_file().piece_length() ? blocks_per_piece : 0;
+ int const blocks_per_piece = t.torrent_file().piece_length() / t.block_size();
+ prefer_contiguous_blocks
122
+ = (c.statistics().download_payload_rate()
123
+ > t.torrent_file().piece_length()
124
+ / t.settings().get_int(settings_pack::whole_pieces_threshold))
125
+ ? blocks_per_piece : 0;
126
}
127
128
// if we prefer whole pieces, the piece picker will pick at least
test/test_alert_types.cpp
@@ -94,8 +94,8 @@ TORRENT_TEST(alerts_types)
94
TEST_ALERT_TYPE(block_finished_alert, 30, 0, alert::progress_notification);
95
TEST_ALERT_TYPE(block_downloading_alert, 31, 0, alert::progress_notification);
96
TEST_ALERT_TYPE(unwanted_block_alert, 32, 0, alert::peer_notification);
97
- TEST_ALERT_TYPE(storage_moved_alert, 33, 0, alert::storage_notification);
98
- TEST_ALERT_TYPE(storage_moved_failed_alert, 34, 0, alert::storage_notification);
+ TEST_ALERT_TYPE(storage_moved_alert, 33, 1, alert::storage_notification);
+ TEST_ALERT_TYPE(storage_moved_failed_alert, 34, 1, alert::storage_notification);
99
TEST_ALERT_TYPE(torrent_deleted_alert, 35, 1, alert::storage_notification);
100
TEST_ALERT_TYPE(torrent_delete_failed_alert, 36, 1, alert::storage_notification | alert::error_notification);
101
TEST_ALERT_TYPE(save_resume_data_alert, 37, 1, alert::storage_notification);
0 commit comments