forked from boostorg/asio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spurious "success" on SSL system errors:
Fix boostorg/beast#807 Fix boostorg/beast#1373 This resolves an issue where an ssl::stream read operation returns a successful error code but zero bytes transferred, violating its contract. * Treat SSL_ERROR_ZERO_RETURN as EOF * Use the ssl category for sys_error * On error, if sys_error is 0 (success), return ssl::errors::read_sys_error instead.
- Loading branch information
1 parent
a6008b6
commit acf4b01
Showing
3 changed files
with
22 additions
and
9 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
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