Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid a blocking write of the internal buffer
When using this API, this IO block is extremely unlikely to occur, but it still breaks the API contract, so fix it as NIO makes it rather easy. With this fix the functionality now seems "final" to me. Shuffle around code to make read and write identical, and remove common code. I will now continue refactoring NIO2 and APR based on the template to see if I can move some code to SocketWrapperBase.
- Loading branch information
Showing
2 changed files
with
54 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters