Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NIO 2.9.0 build warnings. #144

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Oct 23, 2019

Motivation:

We were one of the few first-party users of
writeWithUnsafeMutableWritableBytes, and so we hit some build warnings.
We should use the nice interface to request the number of bytes we
actually want.

Modifications:

  • Remove build warnings.
  • Correctly ask to read a whole SSL record instead of a fragment of one.

Result:

Better code

Motivation:

We were one of the few first-party users of
writeWithUnsafeMutableWritableBytes, and so we hit some build warnings.
We should use the nice interface to request the number of bytes we
actually want.

Modifications:

- Remove build warnings.
- Correctly ask to read a whole SSL record instead of a fragment of one.

Result:

Better code
@Lukasa Lukasa added the semver/patch No public API change. label Oct 23, 2019
@Lukasa Lukasa added this to the 2.5.0 milestone Oct 23, 2019
@Lukasa Lukasa requested review from weissi and glbrntt October 23, 2019 21:22
@Lukasa
Copy link
Contributor Author

Lukasa commented Oct 24, 2019

Looks like a spurious failure: the tests all ran and succeeded.

@Lukasa
Copy link
Contributor Author

Lukasa commented Oct 24, 2019

@swift-nio-bot test this please

Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thank you!

@Lukasa Lukasa merged commit e5c1af4 into apple:master Oct 24, 2019
@Lukasa Lukasa deleted the cb-fix-build-warnings-from-nio branch October 24, 2019 00:24
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.

2 participants