Skip to content

Commit

Permalink
Update InboxPipeline, bump request timeout from 5s to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Nov 18, 2022
1 parent c1dc72d commit bb12001
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Jobs/InboxPipeline/DeleteWorker.php
Expand Up @@ -200,7 +200,7 @@ protected function blindKeyRotation($headers, $payload)
if(Helpers::validateUrl($actor->remote_url) == false) {
return;
}
$res = Zttp::timeout(5)->withHeaders([
$res = Zttp::timeout(60)->withHeaders([
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
])->get($actor->remote_url);
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/InboxPipeline/InboxValidator.php
Expand Up @@ -176,7 +176,7 @@ protected function blindKeyRotation($headers, $profile, $payload)
if(Helpers::validateUrl($actor->remote_url) == false) {
return;
}
$res = Zttp::timeout(5)->withHeaders([
$res = Zttp::timeout(60)->withHeaders([
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
])->get($actor->remote_url);
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/InboxPipeline/InboxWorker.php
Expand Up @@ -166,7 +166,7 @@ protected function blindKeyRotation($headers, $payload)
if(Helpers::validateUrl($actor->remote_url) == false) {
return;
}
$res = Zttp::timeout(5)->withHeaders([
$res = Zttp::timeout(60)->withHeaders([
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
])->get($actor->remote_url);
Expand Down

0 comments on commit bb12001

Please sign in to comment.