Fixes for BINKP, we were sending too many EOB's

This commit is contained in:
2023-07-11 17:22:31 +10:00
parent 029ec9c209
commit 5516b5dc23
2 changed files with 29 additions and 19 deletions

View File

@@ -254,11 +254,11 @@ final class Receive extends Item
&& (Storage::disk('local')->size($this->local_path($ao)) === $this->size))
{
Log::alert(sprintf('%s:- File already exists - skipping [%s]', self::LOGKEY, $this->file));
return Protocol::FOP_SKIP;
return Protocol::FOP_GOT;
} elseif (file_exists($this->file) && (Storage::disk('local')->size($this->local_path($ao)) > 0)) {
Log::alert(sprintf('%s:- File exists with different details - skipping [%s]',self::LOGKEY,$this->file));
return Protocol::FOP_SUSPEND;
return Protocol::FOP_SKIP;
} else {
// @todo I dont think we are enabling resumable sessions - need to check