http: rework connection timeouts to match hackney docs, enforce 1 second max TCP connection timeout
This commit is contained in:
parent
773f532b14
commit
19afd9f81f
4 changed files with 2 additions and 5 deletions
|
|
@ -8,8 +8,8 @@ defmodule Pleroma.HTTP.Connection do
|
|||
"""
|
||||
|
||||
@hackney_options [
|
||||
timeout: 10000,
|
||||
recv_timeout: 20000,
|
||||
connect_timeout: 1_000,
|
||||
recv_timeout: 10_000,
|
||||
follow_redirect: true,
|
||||
pool: :federation
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue