projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expand "to" of delete activities
[akkoma]
/
lib
/
pleroma
/
http
/
connection.ex
diff --git
a/lib/pleroma/http/connection.ex
b/lib/pleroma/http/connection.ex
index f64d4e18e2f35750cbfbc1baed4a3a512e2050b4..b798eaa5ac63e54dc079b9ed20732f85d0a9600e 100644
(file)
--- a/
lib/pleroma/http/connection.ex
+++ b/
lib/pleroma/http/connection.ex
@@
-1,5
+1,18
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.HTTP.Connection do
defmodule Pleroma.HTTP.Connection do
- @hackney_options [pool: :default]
+ @moduledoc """
+ Connection for http-requests.
+ """
+
+ @hackney_options [
+ timeout: 10000,
+ recv_timeout: 20000,
+ follow_redirect: true,
+ pool: :federation
+ ]
@adapter Application.get_env(:tesla, :adapter)
@doc """
@adapter Application.get_env(:tesla, :adapter)
@doc """
@@
-16,7
+29,7
@@
defmodule Pleroma.HTTP.Connection do
# fetch Hackney options
#
# fetch Hackney options
#
- defp hackney_options(opts
\\ []
) do
+ defp hackney_options(opts) do
options = Keyword.get(opts, :adapter, [])
@hackney_options ++ options
end
options = Keyword.get(opts, :adapter, [])
@hackney_options ++ options
end