diff --git a/ChangeLog b/ChangeLog index 2487555383..00cd9f616b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * fix issue where set_piece_deadline() did not correctly post read_piece_alert * fix integer overflow in piece picker * torrent_status::num_pieces counts pieces passed hash check, as documented + * check settings_pack::max_out_request_queue before performance alert 2.0.10 released diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 76db3ac5aa..6f81a68537 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -5117,7 +5117,7 @@ namespace libtorrent { update_desired_queue_size(); - if (m_desired_queue_size == m_max_out_request_queue + if (m_desired_queue_size >= m_settings.get_int(settings_pack::max_out_request_queue) && t->alerts().should_post()) { t->alerts().emplace_alert(t->get_handle()