Longer timeouts for outgoing federation.

This commit is contained in:
Roger Braun 2017-06-23 12:25:53 +02:00
commit 6a184115a2
3 changed files with 5 additions and 5 deletions

View file

@ -54,9 +54,9 @@ defmodule Pleroma.Web.Websub do
Task.start(fn ->
with {:ok, %{status_code: code}} <- @httpoison.post(sub.callback, response, [
{"Content-Type", "application/atom+xml"},
{"X-Hub-Signature", "sha1=#{signature}"}
]) do
{"Content-Type", "application/atom+xml"},
{"X-Hub-Signature", "sha1=#{signature}"}
], timeout: 10000, recv_timeout: 20000) do
Logger.debug(fn -> "Pushed to #{sub.callback}, code #{code}" end)
else e ->
Logger.debug(fn -> "Couldn't push to #{sub.callback}, #{inspect(e)}" end)