Getting out of IAC mode
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 38s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m31s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2025-01-31 16:49:33 +11:00
parent dd04872c1d
commit ae9445aa33

View File

@ -943,7 +943,8 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
$iaccmd = NULL; $iaccmd = NULL;
// Peek for the next 2 chars // Peek for the next 2 chars
do { do {
$iac = $this->client->read(10,1,MSG_PEEK); try {
$iac = $this->client->read(1,1,MSG_PEEK);
Log::debug(sprintf('%s: - IAC LOOP',self::LOGKEY),['iac'=>ord($iac),'cmd'=>$iaccmd]); Log::debug(sprintf('%s: - IAC LOOP',self::LOGKEY),['iac'=>ord($iac),'cmd'=>$iaccmd]);
switch (ord($iac)) { switch (ord($iac)) {
@ -1019,6 +1020,10 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
$ch = ord($this->client->read_ch(10)); $ch = ord($this->client->read_ch(10));
} }
} catch (SocketException $e) {
Log::debug(sprintf('%s:! SocketException: %s',self::LOGKEY,$e->getMessage()),['class'=>get_class($e),'code'=>$e->getCode()]);
$iac = NULL;
}
} while (! is_null($iac)); } while (! is_null($iac));
Log::debug(sprintf('%s:- Leaving IAC with [%02x]',self::LOGKEY,$ch),['ch'=>serialize($ch)]); Log::debug(sprintf('%s:- Leaving IAC with [%02x]',self::LOGKEY,$ch),['ch'=>serialize($ch)]);