mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00:00
Bulk delivery added for all protocols
This commit is contained in:
parent
3fcc45a720
commit
259b99e6e9
12 changed files with 398 additions and 49 deletions
|
@ -1014,6 +1014,10 @@ class DFRN
|
|||
$xml = $postResult->getBody();
|
||||
|
||||
$curl_stat = $postResult->getReturnCode();
|
||||
if (!empty($contact['gsid']) && ($postResult->isTimeout() || empty($curl_stat))) {
|
||||
GServer::setFailureById($contact['gsid']);
|
||||
}
|
||||
|
||||
if (empty($curl_stat) || empty($xml)) {
|
||||
Logger::notice('Empty answer from ' . $contact['id'] . ' - ' . $dest_url);
|
||||
return -9; // timed out
|
||||
|
@ -1035,6 +1039,10 @@ class DFRN
|
|||
return -23;
|
||||
}
|
||||
|
||||
if (!empty($contact['gsid'])) {
|
||||
GServer::setReachableById($contact['gsid']);
|
||||
}
|
||||
|
||||
if (!empty($res->message)) {
|
||||
Logger::info('Transmit to ' . $dest_url . ' returned status '.$res->status.' - '.$res->message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue