Files
swift-nio-http2/Tests/LinuxMain.swift
T
George Barnett fbfe24ccee Exert backpressure via stream flow control windows (#191)
Motivation:

When a window update event is received in the stream channel we notify
the inbound window manager. Doing so may emit a WINDOW_UPDATE frame
to indicate the remote may send us more DATA. However, this happens even
if there are inbound frames waiting to be delivered to the channel. This
may lead to the remote sending us more DATA which we have to buffer
until it is read.

Modifications:

- Update the inbound window manager to track the number of bytes
  buffered in the stream channel
- Account for buffered bytes when receiving a new window size event
- Possibly emit WINDOW_UPDATE after unbuffering inbound frames into the
  stream channel's pipeline

Result:

The timing of WINDOW_UPDATE frames is better aligned with when frames
are actually read in a stream.
2020-03-12 07:45:00 +00:00

52 lines
1.8 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
//
//===----------------------------------------------------------------------===//
//
// LinuxMain.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.
///
#if os(Linux) || os(FreeBSD)
@testable import NIOHPACKTests
@testable import NIOHTTP2Tests
XCTMain([
testCase(CompoundOutboundBufferTest.allTests),
testCase(ConcurrentStreamBufferTests.allTests),
testCase(ConfiguringPipelineTests.allTests),
testCase(ConnectionStateMachineTests.allTests),
testCase(ControlFrameBufferTests.allTests),
testCase(HPACKCodingTests.allTests),
testCase(HPACKIntegrationTests.allTests),
testCase(HPACKRegressionTests.allTests),
testCase(HTTP2FrameParserTests.allTests),
testCase(HTTP2StreamMultiplexerTests.allTests),
testCase(HTTP2ToHTTP1CodecTests.allTests),
testCase(HeaderTableTests.allTests),
testCase(HuffmanCodingTests.allTests),
testCase(InboundWindowManagerTests.allTests),
testCase(IntegerCodingTests.allTests),
testCase(OutboundFlowControlBufferTests.allTests),
testCase(ReentrancyTests.allTests),
testCase(SimpleClientServerTests.allTests),
testCase(StreamChannelFlowControllerTests.allTests),
testCase(StreamIDTests.allTests),
])
#endif