From cf545be338b4117a7422dc31cf56edb2ea51ee98 Mon Sep 17 00:00:00 2001 From: jbrw Date: Fri, 18 Feb 2022 13:37:31 -0500 Subject: [PATCH] FIX: Increase FinalDestination MAX_REQUEST_SIZE_BYTES (#15998) The default of 1Mb was preventing some valid Onebox requests from successfully completing. Increasing this to 5Mb should reduce the number of unexpected failures. --- lib/final_destination.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/final_destination.rb b/lib/final_destination.rb index 078fd4fd781..d4e625730c2 100644 --- a/lib/final_destination.rb +++ b/lib/final_destination.rb @@ -9,7 +9,7 @@ require 'url_helper' # Determine the final endpoint for a Web URI, following redirects class FinalDestination MAX_REQUEST_TIME_SECONDS = 10 - MAX_REQUEST_SIZE_BYTES = 1_048_576 # 1024 * 1024 + MAX_REQUEST_SIZE_BYTES = 5_242_880 # 1024 * 1024 * 5 def self.clear_https_cache!(domain) key = redis_https_key(domain)