libtorrent-rasterbar-2.0.4-boost-1.77.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. https://github.com/arvidn/libtorrent/pull/6412
  2. https://github.com/arvidn/libtorrent/issues/6405
  3. https://bugs.gentoo.org/808084
  4. From 906cedddedbdf9d98ecf2bd19340f7f17869b968 Mon Sep 17 00:00:00 2001
  5. From: arvidn <arvid@libtorrent.org>
  6. Date: Thu, 19 Aug 2021 11:54:13 +0200
  7. Subject: [PATCH] bump handler allocation sizes for boost-1.77 (linux)
  8. ---
  9. include/libtorrent/aux_/allocating_handler.hpp | 10 +++++-----
  10. 1 file changed, 5 insertions(+), 5 deletions(-)
  11. diff --git a/include/libtorrent/aux_/allocating_handler.hpp b/include/libtorrent/aux_/allocating_handler.hpp
  12. index 9d826d11a1..b24349850e 100644
  13. --- a/include/libtorrent/aux_/allocating_handler.hpp
  14. +++ b/include/libtorrent/aux_/allocating_handler.hpp
  15. @@ -122,14 +122,14 @@ namespace libtorrent { namespace aux {
  16. constexpr std::size_t fuzzer_write_cost = 0;
  17. constexpr std::size_t fuzzer_read_cost = 0;
  18. #endif
  19. - constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + fuzzer_write_cost + 152;
  20. - constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + fuzzer_read_cost + 152;
  21. - constexpr std::size_t udp_handler_max_size = tracking + 144;
  22. - constexpr std::size_t utp_handler_max_size = tracking + 168;
  23. + constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + fuzzer_write_cost + 168;
  24. + constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + fuzzer_read_cost + 168;
  25. + constexpr std::size_t udp_handler_max_size = tracking + 160;
  26. + constexpr std::size_t utp_handler_max_size = tracking + 184;
  27. constexpr std::size_t abort_handler_max_size = tracking + 72;
  28. constexpr std::size_t submit_handler_max_size = tracking + 72;
  29. constexpr std::size_t deferred_handler_max_size = tracking + 80;
  30. - constexpr std::size_t tick_handler_max_size = tracking + 112;
  31. + constexpr std::size_t tick_handler_max_size = tracking + 128;
  32. #endif
  33. enum HandlerName