apple / swift-nio-http2

HTTP/2 support for SwiftNIO
https://swiftpackageindex.com/apple/swift-nio-http2/main/documentation/niohttp2
Apache License 2.0
462 stars 82 forks source link

Propagate ChannelShouldQuiesceEvent to child channels #464

Closed glbrntt closed 3 days ago

glbrntt commented 4 days ago

Motivation:

NIO has a 'ChannelShouldQuiesceEvent' which channels can listen for in order to know when they should quiesce. This is typically used to initiate a graceful shutdown of an HTTP/2 server. However, child channels aren't notified of this event so HTTP/2 servers must keep track of streams separately in order to notify them when the server is quiescing.

Modifications:

Result:

Child channels can watch for ChannelShouldQuiesceEvents