mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
Motivation: When setting the stream window size for a stream which had data but couldn't write it (because of a zero window size) the stream would be marked as flushable. Setting the window size to zero again would not mark it as unflushable. On the following window (non-zero) resize it would be marked as flushable again. However, since this is preceeded by an assertion that it wasn't already marked as flushable it would cause a crash. Modifications: - Mark the stream as unflushable if it previously had data which it couldn't write. Result: Fewer crashes