Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 190e894

Browse files
committed
Fix stream creation
1 parent eb7afdb commit 190e894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hyper/http20/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,11 @@ def _new_stream(self, stream_id=None, local_closed=False):
507507
"""
508508
Returns a new stream object for this connection.
509509
"""
510+
window_size = self._settings[SettingsFrame.INITIAL_WINDOW_SIZE]
510511
s = Stream(
511512
stream_id or self.next_stream_id, self._send_cb, self._recv_cb,
512513
self._close_stream, self.encoder, self.decoder,
513-
self.__wm_class(65535), local_closed
514+
self.__wm_class(window_size), local_closed
514515
)
515516
s._out_flow_control_window = self._out_flow_control_window
516517
self.streams[s.stream_id] = s

0 commit comments

Comments
 (0)