From: William Pitcock Date: Fri, 26 Oct 2018 03:06:42 +0000 (+0000) Subject: http: enable keepalive / connection pooling (closes #336) X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7338368ad901db1463014f29fbecd89794fdc908;p=akkoma http: enable keepalive / connection pooling (closes #336) --- diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex index c19bccf60..f222e1774 100644 --- a/lib/pleroma/http/http.ex +++ b/lib/pleroma/http/http.ex @@ -19,9 +19,10 @@ defmodule Pleroma.HTTP do end end - def process_request_options(options) do + defp process_request_options(options) do config = Application.get_env(:pleroma, :http, []) proxy = Keyword.get(config, :proxy_url, nil) + options = options ++ [hackney: [pool: :default]] case proxy do nil -> options