beast: Assertion failed: (bytes_transferred > 0)
My program often crashes with the following beast assertion:
Assertion failed: (bytes_transferred > 0), function operator(), file xxxx/include/boost/beast/websocket/impl/read.ipp, line 436.
Version of Beast
120
All relevant compiler information
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 24 (12 by maintainers)
Commits related to this issue
- trying out beast 122 (https://github.com/boostorg/beast/issues/807) — committed to satori-com/satori-video-sdk-cpp by deleted user 7 years ago
- 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 ... — committed to vinniefalco/boost.asio by vinniefalco 6 years ago
- 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 ... — committed to vinniefalco/boost.asio by vinniefalco 6 years ago
Are you calling read with a buffer of zero bytes?