Merge branch 'bugfix/fd-exhaustion' into 'develop'
http: enable keepalive / connection pooling (closes #336) Closes #336 See merge request pleroma/pleroma!393
This commit is contained in:
commit
ae7c79cfc2
|
@ -19,9 +19,10 @@ defp process_sni_options(options, url) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_request_options(options) do
|
defp process_request_options(options) do
|
||||||
config = Application.get_env(:pleroma, :http, [])
|
config = Application.get_env(:pleroma, :http, [])
|
||||||
proxy = Keyword.get(config, :proxy_url, nil)
|
proxy = Keyword.get(config, :proxy_url, nil)
|
||||||
|
options = options ++ [hackney: [pool: :default]]
|
||||||
|
|
||||||
case proxy do
|
case proxy do
|
||||||
nil -> options
|
nil -> options
|
||||||
|
|
Loading…
Reference in a new issue