diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-04 19:05:08 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-07 19:59:17 +0300 |
commit | a83916fdacac7b11ca478ef9a61b32dd269c8fd2 (patch) | |
tree | d26cd05ea5759d231174aca8e6d453a606fbd6e7 /config | |
parent | c5434dbefc5e6a25ffb72debe8ed9e09d77bf885 (diff) | |
download | pleroma-a83916fdacac7b11ca478ef9a61b32dd269c8fd2.tar.gz |
adapter options unification
not needed options deletion
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 10 | ||||
-rw-r--r-- | config/description.exs | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/config/config.exs b/config/config.exs index d631c3962..2426fbd52 100644 --- a/config/config.exs +++ b/config/config.exs @@ -735,28 +735,28 @@ config :pleroma, :connections_pool, max_connections: 250, max_idle_time: 30_000, retry: 0, - await_up_timeout: 5_000 + connect_timeout: 5_000 config :pleroma, :pools, federation: [ size: 50, max_waiting: 10, - timeout: 10_000 + recv_timeout: 10_000 ], media: [ size: 50, max_waiting: 10, - timeout: 10_000 + recv_timeout: 10_000 ], upload: [ size: 25, max_waiting: 5, - timeout: 15_000 + recv_timeout: 15_000 ], default: [ size: 10, max_waiting: 2, - timeout: 5_000 + recv_timeout: 5_000 ] config :pleroma, :hackney_pools, diff --git a/config/description.exs b/config/description.exs index 18c133f02..eac97ad64 100644 --- a/config/description.exs +++ b/config/description.exs @@ -3377,7 +3377,7 @@ config :pleroma, :config_description, [ suggestions: [250] }, %{ - key: :await_up_timeout, + key: :connect_timeout, type: :integer, description: "Timeout while `gun` will wait until connection is up. Default: 5000ms.", suggestions: [5000] @@ -3415,6 +3415,12 @@ config :pleroma, :config_description, [ description: "Maximum number of requests waiting for other requests to finish. After this number is reached, the pool will start returning errrors when a new request is made", suggestions: [10] + }, + %{ + key: :recv_timeout, + type: :integer, + description: "Timeout for the pool while gun will wait for response", + suggestions: [10_000] } ] } |