def protocol_window_size(id=nil)
      if id && !active_protocol?(id)
        s = max_window_size / (1 + num_active_protocols)
      else
        s = max_window_size / [1, num_active_protocols].max
      end

      s - s % 16 # should be a multiple of padding size # FIXME: 16 should be constant
    end
def protocol_window_size(id=nil)
      if id && !active_protocol?(id)
        s = max_window_size / (1 + num_active_protocols)
      else
        s = max_window_size / [1, num_active_protocols].max
      end

      s - s % 16 # should be a multiple of padding size # FIXME: 16 should be constant
    end
pws = protocol_window_size = window_size / active_protocol_count