Files
swift-nio-ssl/Sources/NIOSSL
Cory Benfield ff0fccddad Clean up write logic (#385)
Motivation:

Unnecessary empty writes should be avoided, and we should avoid
completing promises too often.

Modifications:

- Avoid sending a split promise on every write when writes are too big.
- Avoid sending a zero-length write when writes are too big.

Result:

Slightly better write behaviour.

Note that this is fundamentally un-testable: there's no place to put a
test hook here, and we coalesce writes on the far side, so we can't do
much here.
2022-07-27 01:59:04 -07:00
..