Skip to content

Commit

Permalink
Merge pull request #7714 from tkittich/tkittich-patch-outstanding_req…
Browse files Browse the repository at this point in the history
…uest_limit_reached

check settings_pack::max_out_request_queue before alert outstanding_r…
  • Loading branch information
arvidn authored Jul 27, 2024
2 parents 9306c6b + c2088d2 commit 5ba42b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/peer_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<performance_alert>())
{
t->alerts().emplace_alert<performance_alert>(t->get_handle()
Expand Down

0 comments on commit 5ba42b6

Please sign in to comment.