From f9a74578ff9aebc38d3232f70c7714351a0a8d2b Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 19 Jul 2023 16:24:35 +1000 Subject: [PATCH] Fix for large packet transfer, since we were evaluating with the wrong size --- app/Classes/Protocol/Binkp.php | 4 ++-- resources/views/setup.blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Protocol/Binkp.php b/app/Classes/Protocol/Binkp.php index ffed8c7..9481b75 100644 --- a/app/Classes/Protocol/Binkp.php +++ b/app/Classes/Protocol/Binkp.php @@ -512,8 +512,8 @@ final class Binkp extends BaseProtocol $rc = TRUE; - if ($this->recv->pos === $this->recv->size) { - Log::info(sprintf('%s:- Finished receiving file [%s] with size [%d]',self::LOGKEY,$this->recv->nameas,$this->recv->size)); + if ($this->recv->pos === $this->recv->recvsize) { + Log::info(sprintf('%s:- Finished receiving file [%s] with size [%d]',self::LOGKEY,$this->recv->nameas,$this->recv->recvsize)); $this->msgs(self::BPM_GOTSKIP,$this->recv->name_size_time); $this->recv->close(); diff --git a/resources/views/setup.blade.php b/resources/views/setup.blade.php index 96ba382..a1d1fb5 100644 --- a/resources/views/setup.blade.php +++ b/resources/views/setup.blade.php @@ -135,7 +135,7 @@ use App\Classes\Protocol\{Binkp,EMSI,DNS};
optionGet(Binkp::F_COMP,'binkp_options'))) checked @endif> - +