projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d957b9
)
http: enable keepalive / connection pooling (closes #336)
author
William Pitcock
<nenolod@dereferenced.org>
Fri, 26 Oct 2018 03:06:42 +0000
(
03:06
+0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Fri, 26 Oct 2018 03:06:42 +0000
(
03:06
+0000)
lib/pleroma/http/http.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/http/http.ex
b/lib/pleroma/http/http.ex
index c19bccf607872d98886c1489924b7a421e897c40..f222e1774c9253224b97ca7a642a940b79554a57 100644
(file)
--- 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
+ def
p
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