Skip to content

Conversation

@artemredkin
Copy link
Contributor

Motivation:
Server may send additional lines of data before version, but since we use version as part of key exchange, we need to filter out those lines, otherwise it will fail key exchange.

Modifications:

  • Strip out lines of data before version in client role
  • Update tests

@artemredkin artemredkin requested a review from Lukasa July 21, 2023 15:39
Motivation:
Server may send additional lines of data before version, but since we
use version as part of key exchange, we need to filter out those lines,
otherwise it will fail key exchange.

Modifications:
 - Strip out lines of data before version in client role
 - Update tests
@artemredkin artemredkin force-pushed the fix_version_parsing branch from de160b1 to 6882f47 Compare July 21, 2023 16:11
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jul 21, 2023
@Lukasa Lukasa enabled auto-merge (squash) July 21, 2023 16:19
@Lukasa Lukasa merged commit ded5e5c into apple:main Jul 21, 2023
@artemredkin artemredkin deleted the fix_version_parsing branch July 21, 2023 16:20
@finagolfin
Copy link
Contributor

@Lukasa, I see that the minimum NIO version needs to be bumped after this pull, as takingOwnershipOfDescriptors() added here was not added till NIO 2.56.0. This causes build failures for me locally because this package is checking out 2.45.0 instead.

@Lukasa
Copy link
Contributor

Lukasa commented Sep 6, 2023

Good catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants