Merge branch 'trivial/increase-hackney-timeouts' into 'develop'
authorkaniini <nenolod@gmail.com>
Tue, 21 May 2019 05:15:29 +0000 (05:15 +0000)
committerkaniini <nenolod@gmail.com>
Tue, 21 May 2019 05:15:29 +0000 (05:15 +0000)
http: bump connection timeout to 10 seconds

See merge request pleroma/pleroma!1183

CHANGELOG.md
lib/pleroma/http/connection.ex

index 07e6bce317d2fb7a9801d21f5fe2e91d7fe697b4..256df91b7250ec44acfd97adf03a1ea34689e4e4 100644 (file)
@@ -73,6 +73,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 - Don't ship finmoji by default, they can be installed as an emoji pack
 - Hide deactivated users and their statuses
 - Posts which are marked sensitive or tagged nsfw no longer have link previews.
+- HTTP connection timeout is now set to 10 seconds.
 
 ### Fixed
 - Added an FTS index on objects. Running `vacuum analyze` and setting a larger `work_mem` is recommended.
index c0173465ab741d9bf39b41750865cdbe7f30c3e7..558005c19260e96cee699783847c17c1980ea884 100644 (file)
@@ -8,7 +8,7 @@ defmodule Pleroma.HTTP.Connection do
   """
 
   @hackney_options [
-    connect_timeout: 2_000,
+    connect_timeout: 10_000,
     recv_timeout: 20_000,
     follow_redirect: true,
     pool: :federation