commit: 116fe77b77eedd2feb073d3be256fea08169c95b
parent 0a86d2b3ac9c90a16aec1237019ecfcb1e680728
Author: Mark Felder <feld@feld.me>
Date: Tue, 27 Aug 2024 21:55:06 -0400
Tesla.Middleware.Timeout breaks streaming bodies
These are executed by Oban now and Oban can enforce the timeout if the regular HTTP timeout is not sufficient.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/lib/pleroma/web/rich_media/helpers.ex b/lib/pleroma/web/rich_media/helpers.ex
@@ -96,12 +96,9 @@ defmodule Pleroma.Web.RichMedia.Helpers do
end
defp http_options do
- timeout = Config.get!([:rich_media, :timeout])
-
[
pool: :rich_media,
max_body: Config.get([:rich_media, :max_body], 5_000_000),
- tesla_middleware: [{Tesla.Middleware.Timeout, timeout: timeout}],
stream: true
]
end