apple / swift-nio-ssl

TLS Support for SwiftNIO, based on BoringSSL.
https://swiftpackageindex.com/apple/swift-nio-ssl/main/documentation/niossl
Apache License 2.0
388 stars 139 forks source link

Unbuffer reads after handshake #379

Closed FranzBusch closed 2 years ago

FranzBusch commented 2 years ago

Motivation

We missed unbuffering reads after the handshake completed. This could result in reads that were buffered while the handshake was in progress to not unbuffer.

Modification

This PR unbuffers any reads after the handshake is completed.

Result

We are now unbuffering reads correctly.

FranzBusch commented 2 years ago

@weissi Yes this test fails without the fix