Method: Net::SSH::Connection::Channel#do_window_adjust

Defined in:
lib/net/ssh/connection/channel.rb

#do_window_adjust(bytes) ⇒ Object

Invoked when the server sends a CHANNEL_WINDOW_ADJUST packet, and causes the remote window size to be adjusted upwards by the given number of bytes. This has the effect of allowing more data to be sent from the local end to the remote end of the channel.



532
533
534
535
# File 'lib/net/ssh/connection/channel.rb', line 532

def do_window_adjust(bytes) #:nodoc:
  @remote_maximum_window_size += bytes
  @remote_window_size += bytes
end