mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-22 04:30:43 +00:00
Motivation: `NIOHTTP2Handler` currently does not support graceful shutdown because it does not action upon a `ChannelShouldQuiesceEvent` event. See issue https://github.com/apple/swift-nio-http2/issues/336. Per the [comment](https://github.com/apple/swift-nio-http2/issues/336#issuecomment-2252862397) on that issue, [`gRPC-swift-nio-transport`](https://github.com/grpc/grpc-swift-nio-transport) implements this functionality in a separate channel handler, named [`ServerConnectionManagementHandler`](https://github.com/grpc/grpc-swift-nio-transport/blob/main/Sources/GRPCNIOTransportCore/Server/Connection/ServerConnectionManagementHandler.swift). We should introduce this to this repo too. Modifications: - Added `ServerConnectionManagementHandler` from `gRPC-swift-nio-transport` with some slight modifications such as removing gRPC-specific functionality like policing client pings. - Added a new `configureAsyncHTTP2Pipeline` helper, which takes a connection manager configuration as an argument and sets the connection manager up alongside `NIOHTTP2Handler`. Result: Addresses issue https://github.com/apple/swift-nio-http2/issues/336.
71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
|
|
The SwiftNIO Project
|
|
====================
|
|
|
|
Please visit the SwiftNIO web site for more information:
|
|
|
|
* https://github.com/apple/swift-nio
|
|
|
|
Copyright 2017, 2018 The SwiftNIO Project
|
|
|
|
The SwiftNIO Project licenses this file to you under the Apache License,
|
|
version 2.0 (the "License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at:
|
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
License for the specific language governing permissions and limitations
|
|
under the License.
|
|
|
|
Also, please refer to each LICENSE.<component>.txt file, which is located in
|
|
the 'license' directory of the distribution file, for the license terms of the
|
|
components that this product depends on.
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
This product is heavily influenced by Netty.
|
|
|
|
* LICENSE (Apache License 2.0):
|
|
* https://github.com/netty/netty/blob/4.1/LICENSE.txt
|
|
* HOMEPAGE:
|
|
* https://netty.io
|
|
|
|
---
|
|
|
|
This product contains a derivation of the Tony Stone's 'process_test_files.rb'.
|
|
|
|
* LICENSE (Apache License 2.0):
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
* HOMEPAGE:
|
|
* https://codegists.com/snippet/ruby/generate_xctest_linux_runnerrb_tonystone_ruby
|
|
|
|
---
|
|
|
|
The unit tests make use of 'hpack-test-case' by jxck, summerwind, kazu-yamamoto, and tatsuhiro-t.
|
|
|
|
* LICENSE (MIT):
|
|
* https://opensource.org/licenses/MIT
|
|
* HOMEPAGE:
|
|
* https://github.com/http2jp/hpack-test-case
|
|
|
|
---
|
|
|
|
This product contains a fuzz testing harness derived from Swift Protobuf.
|
|
|
|
* LICENSE (Apache License 2.0):
|
|
* https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt
|
|
* HOMEPAGE:
|
|
* https://github.com/apple/swift-protobuf
|
|
|
|
---
|
|
|
|
This product contains a graceful shutdown connection manager derived from gRPC Swift NIO Transport.
|
|
|
|
* LICENSE (Apache License 2.0):
|
|
* https://github.com/grpc/grpc-swift-nio-transport/blob/main/LICENSE
|
|
* HOMEPAGE:
|
|
* https://github.com/gRPC/gRPC-swift-nio-transport
|