From 6374725e8e9059fe944ce867de633708f9344ec1 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 27 Jun 2024 08:57:00 +1000 Subject: [PATCH] Added debugging for our read buffer, for problem debugging --- app/Classes/Protocol/Binkp.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Classes/Protocol/Binkp.php b/app/Classes/Protocol/Binkp.php index f4cd174..82438ea 100644 --- a/app/Classes/Protocol/Binkp.php +++ b/app/Classes/Protocol/Binkp.php @@ -393,11 +393,13 @@ final class Binkp extends BaseProtocol if ($this->capGet(self::F_CRYPT,self::O_YES)) { Log::debug(sprintf('%s:%% Decrypting data from remote.',self::LOGKEY)); - $this->rx_buf .= $this->crypt_in->decrypt($rx_buf); + $this->rx_buf .= ($x=$this->crypt_in->decrypt($rx_buf)); } else { - $this->rx_buf .= $rx_buf; + $this->rx_buf .= ($x=$rx_buf); } + + Log::debug(sprintf('%s:- We read [%d] chars from remote',self::LOGKEY,strlen($x)),['rx_buf'=>hex_dump($x)]); } Log::debug(sprintf('%s:- Read buffer has [%d] chars to process.',self::LOGKEY,strlen($this->rx_buf)));