Files
swift-nio-http2/Tests/NIOHTTP2Tests/SimpleClientServerTests+XCTest.swift
T
Cory Benfield 55daa4cd4e Correctly notify StreamMultiplexer of SETTINGS changes. (#67)
Motivation:

The StreamMultiplexer and StreamChannels are responsible for sending
WINDOW_UPDATE frames, but they were never told if the user changed the
value of SETTINGS_INITIAL_WINDOW_SIZE. They should be.

Modifications:

- Send user events when SETTINGS_INITIAL_WINDOW_SIZE changes.
- Use those window events to change the target window size in
    HTTP2StreamChannel.
- Keep track of the last stream window size we knew.

Result:

Less chance of flow control mess.
2019-03-15 17:37:00 +00:00

59 lines
3.0 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
//
//===----------------------------------------------------------------------===//
//
// SimpleClientServerTests+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 SimpleClientServerTests {
static var allTests : [(String, (SimpleClientServerTests) -> () throws -> Void)] {
return [
("testBasicRequestResponse", testBasicRequestResponse),
("testBasicRequestResponseWithDynamicPipeline", testBasicRequestResponseWithDynamicPipeline),
("testManyRequestsAtOnce", testManyRequestsAtOnce),
("testNothingButGoaway", testNothingButGoaway),
("testGoAwayWithStreamsUpQuiescing", testGoAwayWithStreamsUpQuiescing),
("testLargeDataFramesAreSplit", testLargeDataFramesAreSplit),
("testSendingDataFrameWithSmallFile", testSendingDataFrameWithSmallFile),
("testSendingDataFrameWithLargeFile", testSendingDataFrameWithLargeFile),
("testMoreRequestsThanMaxConcurrentStreamsAtOnce", testMoreRequestsThanMaxConcurrentStreamsAtOnce),
("testOverridingDefaultSettings", testOverridingDefaultSettings),
("testBasicPingFrames", testBasicPingFrames),
("testAutomaticFlowControl", testAutomaticFlowControl),
("testPartialFrame", testPartialFrame),
("testSendingTrailers", testSendingTrailers),
("test1XXResponseHeaderFields", test1XXResponseHeaderFields),
("testPriorityFrames", testPriorityFrames),
("testStreamClosedWithNoError", testStreamClosedWithNoError),
("testStreamClosedViaRstStream", testStreamClosedViaRstStream),
("testStreamClosedViaGoaway", testStreamClosedViaGoaway),
("testStreamCloseEventForRstStreamFiresAfterFrame", testStreamCloseEventForRstStreamFiresAfterFrame),
("testStreamCloseEventForGoawayFiresAfterFrame", testStreamCloseEventForGoawayFiresAfterFrame),
("testManyConcurrentInactiveStreams", testManyConcurrentInactiveStreams),
("testBadClientMagic", testBadClientMagic),
("testOpeningWindowsViaSettingsInitialWindowSize", testOpeningWindowsViaSettingsInitialWindowSize),
("testSettingsAckNotifiesAboutChangedFlowControl", testSettingsAckNotifiesAboutChangedFlowControl),
("testStreamMultiplexerAcknowledgesSettingsBasedFlowControlChanges", testStreamMultiplexerAcknowledgesSettingsBasedFlowControlChanges),
]
}
}