Compare commits

...

2 Commits

Author SHA1 Message Date
38e4e551b9 If we are given a zero byte file, we SKIP it
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 48s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m53s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s
2024-09-30 08:53:31 +10:00
43c573f641 Address list log is the config, not the actual node time since seen 2024-09-29 13:31:43 +10:00
2 changed files with 12 additions and 4 deletions

View File

@ -663,7 +663,7 @@ final class Binkp extends BaseProtocol
$offs = (int)$this->strsep($str,' '); $offs = (int)$this->strsep($str,' ');
$flags = $this->strsep($str,' '); $flags = $this->strsep($str,' ');
if ($name && $size && $time) { if ($name && is_numeric($size) && $time) {
return [ return [
'file'=>['name'=>$name,'size'=>$size,'mtime'=>$time], 'file'=>['name'=>$name,'size'=>$size,'mtime'=>$time],
'offs'=>$offs, 'offs'=>$offs,
@ -918,6 +918,14 @@ final class Binkp extends BaseProtocol
$this->recv->new($file['file'],$this->node->address,$this->force_queue); $this->recv->new($file['file'],$this->node->address,$this->force_queue);
// If the file is zero byte size, we'll skip it
if ($this->recv->recvsize === 0) {
Log::error(sprintf('%s:! SKIPPING zero byte file info [%s]',self::LOGKEY,$this->recv->nameas));
$this->msgs(self::BPM_SKIP,$this->recv->name_size_time);
return TRUE;
}
try { try {
switch ($this->recv->open($file['offs']<0,$file['flags'])) { switch ($this->recv->open($file['offs']<0,$file['flags'])) {
case self::FOP_ERROR: case self::FOP_ERROR:

View File

@ -62,7 +62,7 @@ class AddressIdle implements ShouldQueue
if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age)) if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age))
continue; continue;
Log::info(sprintf('%s:- Delisting [%s], not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.delist'))); Log::info(sprintf('%s:- Delisting [%s], not seen for at least [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.delist')));
$contact = FALSE; $contact = FALSE;
// Remove echomail not collected from echomail_seenby // Remove echomail not collected from echomail_seenby
@ -126,7 +126,7 @@ class AddressIdle implements ShouldQueue
if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age)) if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age))
continue; continue;
Log::info(sprintf('%s:- Marking [%s] as DOWN, not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.down'))); Log::info(sprintf('%s:- Marking [%s] as DOWN, not seen for at least [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.down')));
$contact = FALSE; $contact = FALSE;
// Email Alert // Email Alert
@ -173,7 +173,7 @@ class AddressIdle implements ShouldQueue
$contact = FALSE; $contact = FALSE;
Log::info(sprintf('%s:- Marking [%s] as HOLD, not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.hold'))); Log::info(sprintf('%s:- Marking [%s] as HOLD, not seen for at least [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.hold')));
// Email Alert // Email Alert
if ($ao->system->users->count()) { if ($ao->system->users->count()) {