Files
swift-nio-http2/Tests/NIOHTTP2Tests
George Barnett 39a0aa47f8 Only flush when necessary in the HTTP2ChannelHandler (#320)
Motivation:

The `wroteFrame` flag in `HTTP2ChannelHandler` indicates whether a frame
has been written. This flag is checked before flushing in order to avoid
unnecessary flushes. Unfortunately this is only ever set to `true`.

Modifications:

- Add a `flushIfNecessary` to check and toggle `wroteFrame` and flush if
  necessary
- Add a test

Result:

- Few unnecessary flushes
- Resolves https://github.com/apple/swift-nio-http2/issues/245
2021-12-15 09:33:30 +00:00
..