

def remote_flow_control_window(self, stream_id):
    '\n        Returns the maximum amount of data the remote peer can send on stream\n        ``stream_id``.\n\n        This value will never be larger than the total data that can be sent on\n        the connection: even if the given stream allows more data, the\n        connection window provides a logical maximum to the amount of data that\n        can be sent.\n\n        The maximum data that can be sent in a single data frame on a stream\n        is either this value, or the maximum frame size, whichever is\n        *smaller*.\n\n        :param stream_id: The ID of the stream whose flow control window is\n            being queried.\n        :type stream_id: ``int``\n        :returns: The amount of data in bytes that can be received on the\n            stream before the flow control window is exhausted.\n        :rtype: ``int``\n        '
    stream = self._get_stream_by_id(stream_id)
    return min(self.inbound_flow_control_window, stream.inbound_flow_control_window)

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection.remote_flow_control_window/original