forked from mirror/pixelfed
Update InboxPipeline, bump request timeout from 5s to 60s
This commit is contained in:
parent
c1dc72d970
commit
bb12001992
|
@ -200,7 +200,7 @@ class DeleteWorker implements ShouldQueue
|
||||||
if(Helpers::validateUrl($actor->remote_url) == false) {
|
if(Helpers::validateUrl($actor->remote_url) == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$res = Zttp::timeout(5)->withHeaders([
|
$res = Zttp::timeout(60)->withHeaders([
|
||||||
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||||
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
||||||
])->get($actor->remote_url);
|
])->get($actor->remote_url);
|
||||||
|
|
|
@ -176,7 +176,7 @@ class InboxValidator implements ShouldQueue
|
||||||
if(Helpers::validateUrl($actor->remote_url) == false) {
|
if(Helpers::validateUrl($actor->remote_url) == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$res = Zttp::timeout(5)->withHeaders([
|
$res = Zttp::timeout(60)->withHeaders([
|
||||||
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||||
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
||||||
])->get($actor->remote_url);
|
])->get($actor->remote_url);
|
||||||
|
|
|
@ -166,7 +166,7 @@ class InboxWorker implements ShouldQueue
|
||||||
if(Helpers::validateUrl($actor->remote_url) == false) {
|
if(Helpers::validateUrl($actor->remote_url) == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$res = Zttp::timeout(5)->withHeaders([
|
$res = Zttp::timeout(60)->withHeaders([
|
||||||
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||||
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
||||||
])->get($actor->remote_url);
|
])->get($actor->remote_url);
|
||||||
|
|
Loading…
Reference in New Issue