mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Preserve operation_aborted on partial message
This commit is contained in:
committed by
Damian Jarek
parent
1501962b92
commit
be460675bc
@ -11,6 +11,7 @@ Version 256:
|
||||
* Fix `buffers_cat` iterator tests
|
||||
* Don't pessimize-move
|
||||
* Use steady_timer type
|
||||
* Preserve operation_aborted on partial message
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -62,8 +62,12 @@ parse_until(
|
||||
// caller to distinguish an SSL short read which
|
||||
// represents a safe connection closure, versus
|
||||
// a closure with data loss.
|
||||
if(parser.got_some() && ! parser.is_done())
|
||||
if( ec != net::error::operation_aborted &&
|
||||
parser.got_some() && ! parser.is_done())
|
||||
{
|
||||
ec = error::partial_message;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
if(parser.is_done())
|
||||
|
Reference in New Issue
Block a user