diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-10-26 03:06:42 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-10-26 03:06:42 +0000 |
commit | 7338368ad901db1463014f29fbecd89794fdc908 (patch) | |
tree | 294a2c765bcbdd3847326fe04dc440cb274dac0c /lib | |
parent | 2d957b985fcf97fd38f17253a658685841447c1d (diff) | |
download | pleroma-7338368ad901db1463014f29fbecd89794fdc908.tar.gz |
http: enable keepalive / connection pooling (closes #336)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/http/http.ex | 3 |
1 files changed, 2 insertions, 1 deletions
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 |