mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Merge branch 'master' of https://github.com/phpseclib/phpseclib
This commit is contained in:
commit
bf6da217c1
@ -2877,7 +2877,6 @@ class Net_SSH2 {
|
|||||||
// the most useful log for SSH2
|
// the most useful log for SSH2
|
||||||
case NET_SSH2_LOG_COMPLEX:
|
case NET_SSH2_LOG_COMPLEX:
|
||||||
$this->message_number_log[] = $message_number;
|
$this->message_number_log[] = $message_number;
|
||||||
$this->_string_shift($message);
|
|
||||||
$this->log_size+= strlen($message);
|
$this->log_size+= strlen($message);
|
||||||
$this->message_log[] = $message;
|
$this->message_log[] = $message;
|
||||||
while ($this->log_size > NET_SSH2_LOG_MAX_SIZE) {
|
while ($this->log_size > NET_SSH2_LOG_MAX_SIZE) {
|
||||||
@ -2935,9 +2934,11 @@ class Net_SSH2 {
|
|||||||
*/
|
*/
|
||||||
function _send_channel_packet($client_channel, $data)
|
function _send_channel_packet($client_channel, $data)
|
||||||
{
|
{
|
||||||
// The maximum amount of data allowed is determined by the maximum
|
/* The maximum amount of data allowed is determined by the maximum
|
||||||
// packet size for the channel, and the current window size, whichever
|
packet size for the channel, and the current window size, whichever
|
||||||
// is smaller.
|
is smaller.
|
||||||
|
|
||||||
|
-- http://tools.ietf.org/html/rfc4254#section-5.2 */
|
||||||
$max_size = min(
|
$max_size = min(
|
||||||
$this->packet_size_client_to_server[$client_channel],
|
$this->packet_size_client_to_server[$client_channel],
|
||||||
$this->window_size_client_to_server[$client_channel]
|
$this->window_size_client_to_server[$client_channel]
|
||||||
|
Loading…
Reference in New Issue
Block a user