You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using auto flow control through acknowledge_receive_data, is there a way to configure the receive window (for both the connection and the stream)?
I know that we can set the INITIAL_WINDOW_SIZE for streams, and the WindowManager will use this setting for the max window size. Unfortunately, at the connection level, the window size remains pretty small, I think at 64k.
We're in a situation with higher than usual round-trip-times, so, I'd like to increase window sizes, but still use auto flow control if possible.
The text was updated successfully, but these errors were encountered:
To increase the flow control window of the connection, we can call conn.increment_flow_control_window(1024*1024, stream_id=None right after conn.initiate_connection(). This will increase the max_window_size of the WindowManager, which will be used from then onwards.
The flow control window of the stream can be configured through the INITIAL_WINDOW_SIZE setting at the start.
That seems to do the job. I'm somewhat confused by this, wondering whether it's the right approach. The docs about "Auto Flow Control" make it seem like we no longer have to call increment_flow_control_window, but only acknowledge_received_data However, it looks like if we want a larger window, we have to both change the INITIAL_WINDOW_SIZE setting, and still call increment_flow_control_window once for the connection. Is this correct?
I haven't dug in whether that's a safe way to do things. This seems like a useful feature though, being able to configure the connection level window separate from initial stream windows.
When using auto flow control through
acknowledge_receive_data
, is there a way to configure the receive window (for both the connection and the stream)?I know that we can set the
INITIAL_WINDOW_SIZE
for streams, and theWindowManager
will use this setting for the max window size. Unfortunately, at the connection level, the window size remains pretty small, I think at 64k.We're in a situation with higher than usual round-trip-times, so, I'd like to increase window sizes, but still use auto flow control if possible.
The text was updated successfully, but these errors were encountered: