def test_windowupdate_frames_update_windows(self): s = Stream(1, None, None, None, None) f = WindowUpdateFrame(1) f.window_increment = 1000 s.receive_frame(f) assert s._out_flow_control_window == 65535 + 1000
def test_windowupdate_frames_update_windows(self): s = Stream(1, None, None, None, None) f = WindowUpdateFrame(1) f.window_increment = 1000 s.receive_frame(f) assert s._out_flow_control_window == 65535 + 1000
def test_connections_increment_send_window_properly(self): f = WindowUpdateFrame(0) f.window_increment = 1000 c = HTTP20Connection('www.google.com') c._sock = DummySocket() # 'Receive' the WINDOWUPDATE frame. c.receive_frame(f) assert c._out_flow_control_window == 65535 + 1000
def test_connections_increment_send_window_properly(self): f = WindowUpdateFrame(0) f.window_increment = 1000 c = HTTP20Connection("www.google.com") c._sock = DummySocket() # 'Receive' the WINDOWUPDATE frame. c.receive_frame(f) assert c._out_flow_control_window == 65535 + 1000
def test_window_update_serializes_properly(self): f = WindowUpdateFrame(0) f.window_increment = 512 s = f.serialize() assert s == b'\x00\x04\x09\x00\x00\x00\x00\x00\x00\x00\x02\x00'
def test_window_update_serializes_properly(self): f = WindowUpdateFrame(0) f.window_increment = 512 s = f.serialize() assert s == b'\x00\x04\x09\x00\x00\x00\x00\x00\x00\x00\x02\x00'