Getting out of IAC mode
This commit is contained in:
parent
dd04872c1d
commit
ae9445aa33
@ -943,7 +943,8 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
$iaccmd = NULL;
|
||||
// Peek for the next 2 chars
|
||||
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]);
|
||||
|
||||
switch (ord($iac)) {
|
||||
@ -1019,6 +1020,10 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
$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));
|
||||
|
||||
Log::debug(sprintf('%s:- Leaving IAC with [%02x]',self::LOGKEY,$ch),['ch'=>serialize($ch)]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user