mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-03 04:18:29 +00:00
SSH2: suppress 'broken pipe' errors
This commit is contained in:
parent
239bc63618
commit
ded9b3043f
@ -3981,7 +3981,7 @@ class Net_SSH2
|
||||
$packet.= $hmac;
|
||||
|
||||
$start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
|
||||
$result = strlen($packet) == fputs($this->fsock, $packet);
|
||||
$result = strlen($packet) == @fputs($this->fsock, $packet);
|
||||
$stop = strtok(microtime(), ' ') + strtok('');
|
||||
|
||||
if (defined('NET_SSH2_LOGGING')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user