This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313managers will define a flow-control policy. This policy will determine when to
1414send WINDOWUPDATE frames.
1515"""
16+
17+
1618class BaseFlowControlManager (object ):
1719 """
1820 The abstract base class for flow control managers.
@@ -128,8 +130,8 @@ class FlowControlManager(BaseFlowControlManager):
128130 ``hyper``'s default flow control manager.
129131
130132 This implements hyper's flow control algorithms. This algorithm attempts to
131- reduce the number of WINDOWUPDATE frames we send without blocking the remote
132- endpoint behind the flow control window.
133+ reduce the number of WINDOWUPDATE frames we send without blocking the
134+ remote endpoint behind the flow control window.
133135
134136 This algorithm will become more complicated over time. In the current form,
135137 the algorithm is very simple:
@@ -143,7 +145,7 @@ def increase_window_size(self, frame_size):
143145 future_window_size = self .window_size - frame_size
144146
145147 if ((future_window_size < (self .initial_window_size / 4 )) or
146- (future_window_size < 1000 )):
148+ (future_window_size < 1000 )):
147149 return self .initial_window_size - future_window_size
148150
149151 return 0
You can’t perform that action at this time.
0 commit comments