mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 09:38:06 +01:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
8907a4bd5b
@ -247,6 +247,13 @@ class SCP
|
|||||||
$content = '';
|
$content = '';
|
||||||
while ($size < $info['size']) {
|
while ($size < $info['size']) {
|
||||||
$data = $this->_receive();
|
$data = $this->_receive();
|
||||||
|
|
||||||
|
// Terminate the loop in case the server repeatedly sends an empty response
|
||||||
|
if ($data === false) {
|
||||||
|
user_error('No data received from server', E_USER_NOTICE);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// SCP usually seems to split stuff out into 16k chunks
|
// SCP usually seems to split stuff out into 16k chunks
|
||||||
$size+= strlen($data);
|
$size+= strlen($data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user