If we get a file we cannot parse, then send back a SKIP and keep going
This commit is contained in:
parent
333e7e773d
commit
bfab8c7d26
@ -894,16 +894,13 @@ final class Binkp extends BaseProtocol
|
|||||||
//if ($this->recv->fd)
|
//if ($this->recv->fd)
|
||||||
// $this->recv->close();
|
// $this->recv->close();
|
||||||
|
|
||||||
|
// If we cannot understand the file, we'll send back a SKIP
|
||||||
if (! ($file=$this->file_parse($buf))) {
|
if (! ($file=$this->file_parse($buf))) {
|
||||||
Log::error(sprintf('%s:! UNPARSABLE file info [%s]',self::LOGKEY,$buf));
|
Log::error(sprintf('%s:! UNPARSABLE file info [%s]',self::LOGKEY,$buf));
|
||||||
$this->msgs(self::BPM_ERR,sprintf('M_FILE: unparsable file info: "%s", what are you on?',$buf));
|
$this->msgs(self::BPM_ERR,sprintf('M_FILE: unparsable file info: "%s", what are you on?',$buf));
|
||||||
|
$this->msgs(self::BPM_SKIP,$buf);
|
||||||
|
|
||||||
if ($this->sessionGet(self::SE_SENDFILE))
|
return TRUE;
|
||||||
$this->send->close(FALSE,$this->node);
|
|
||||||
|
|
||||||
$this->rc = self::S_FAILURE;
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// In NR mode, when we got -1 for the file offsite, the reply to our get will confirm our requested offset.
|
// In NR mode, when we got -1 for the file offsite, the reply to our get will confirm our requested offset.
|
||||||
|
Loading…
Reference in New Issue
Block a user