forked from boostorg/beast
Better treatment of SSL short reads:
fix #38 This improves the behavior when encountering a short read: * Any stream error encountered during a read is converting into `http::error::partial_message` if some data was received but the message is incomplete. * Examples squelch SSL short read errors from the logs.
This commit is contained in:
@@ -73,10 +73,17 @@ public:
|
||||
}
|
||||
catch(system_error const& se)
|
||||
{
|
||||
// VFALCO Commented this out after the short
|
||||
// read change, because it converts test_failure
|
||||
// into http::partial_message
|
||||
//
|
||||
boost::ignore_unused(se);
|
||||
#if 0
|
||||
if(! BEAST_EXPECTS(
|
||||
se.code() == test::error::test_failure,
|
||||
se.code().message()))
|
||||
throw;
|
||||
#endif
|
||||
if(! BEAST_EXPECTS(
|
||||
clock_type::now() < expires_at,
|
||||
"a test timeout occurred"))
|
||||
|
||||
Reference in New Issue
Block a user