mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Motivation: The Darwin gathering datagram writes shim incorrectly placed the "bytes written" amount into the first slot in the array for every write. This had the effect of incorrectly accounting for the amount of bytes written for literally every element of a vector write. Not good. Modifications: Correctly account for each vector write element. Result: Lower risk of preconditions in incorrect situations, better accounting of written bytes.