Files
swift-nio-http2/Tests/NIOHTTP2Tests/OutboundFlowControlBufferTests+XCTest.swift
T
Cory Benfield 9e07639b44 Respect changes to INITIAL_WINDOW_SIZE in outbound buffer. (#64)
Motivation:

When the remote peer changes SETTINGS_INITIAL_WINDOW_SIZE, this change
affects the flow control window sizes of all existing streams (as though
they were created with this new initial window size). We should respect
those flow control changes.

Modifications:

- Propagated changes in SETTINGS_INITIAL_WINDOW_SIZE.
- Made NIOHTTP2ConnectionStateChange internal.
- Added support for changing initial window size.

Result:

SETTINGS frames that change initial window size now work properly.
2019-03-15 14:29:53 +00:00

46 lines
2.1 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
//
// OutboundFlowControlBufferTests+XCTest.swift
//
import XCTest
///
/// NOTE: This file was generated by generate_linux_tests.rb
///
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
///
extension OutboundFlowControlBufferTests {
static var allTests : [(String, (OutboundFlowControlBufferTests) -> () throws -> Void)] {
return [
("testJustLettingDataThrough", testJustLettingDataThrough),
("testSimpleFramesKeepBoundaries", testSimpleFramesKeepBoundaries),
("testOverlargeFramesAreSplitByteBuffer", testOverlargeFramesAreSplitByteBuffer),
("testOverlargeFramesAreSplitFileRegion", testOverlargeFramesAreSplitFileRegion),
("testIgnoresNonDataFramesForStream", testIgnoresNonDataFramesForStream),
("testProperlyDelaysENDSTREAMFlag", testProperlyDelaysENDSTREAMFlag),
("testInterlacingWithHeaders", testInterlacingWithHeaders),
("testBufferedDataAndHeadersAreCancelledOnStreamClosure", testBufferedDataAndHeadersAreCancelledOnStreamClosure),
("testWritesForUnknownStreamsFail", testWritesForUnknownStreamsFail),
("testOverlargeFramesAreSplitOnMaxFrameSizeByteBuffer", testOverlargeFramesAreSplitOnMaxFrameSizeByteBuffer),
("testOverlargeFramesAreSplitOnMaxFrameSizeFileRegion", testOverlargeFramesAreSplitOnMaxFrameSizeFileRegion),
("testChangingStreamWindowSizeToZeroAndBack", testChangingStreamWindowSizeToZeroAndBack),
("testStreamWindowChanges", testStreamWindowChanges),
]
}
}