Set the server status directly after transmission

This commit is contained in:
Michael 2023-01-01 17:34:05 +00:00
parent 8c60e853ca
commit f1bcf1ef66
5 changed files with 23 additions and 11 deletions

View file

@ -1040,7 +1040,7 @@ class DFRN
}
if (!empty($contact['gsid'])) {
GServer::setReachableById($contact['gsid']);
GServer::setReachableById($contact['gsid'], Protocol::DFRN);
}
if (!empty($res->message)) {

View file

@ -2958,7 +2958,7 @@ class Diaspora
if (!empty($contact['gsid']) && (empty($return_code) || $postResult->isTimeout())) {
GServer::setFailureById($contact['gsid']);
} elseif (!empty($contact['gsid']) && ($return_code >= 200) && ($return_code <= 299)) {
GServer::setReachableById($contact['gsid']);
GServer::setReachableById($contact['gsid'], Protocol::DIASPORA);
}
Logger::notice('transmit: ' . $logid . '-' . $guid . ' to ' . $dest_url . ' returns: ' . $return_code);