handleMSG_CHANNEL_WINDOW_ADJUST method

void handleMSG_CHANNEL_WINDOW_ADJUST(
  1. MSG_CHANNEL_WINDOW_ADJUST msg
)

After receiving this message, the recipient MAY send the given number of bytes more than it was previously allowed to send; the window size is incremented.

Implementation

void handleMSG_CHANNEL_WINDOW_ADJUST(MSG_CHANNEL_WINDOW_ADJUST msg) {
  if (tracePrint != null) {
    tracePrint(
        '$hostport: MSG_CHANNEL_WINDOW_ADJUST add ${msg.bytesToAdd} to channel ${msg.recipientChannel}');
  }
  Channel chan = channels[msg.recipientChannel];
  if (chan == null) {
    throw FormatException('$hostport: window adjust invalid channel');
  }
  chan.windowC += msg.bytesToAdd;
}