Preserve operation_aborted on partial message

This commit is contained in:
Vinnie Falco
2019-05-14 14:41:41 -07:00
committed by Damian Jarek
parent 1501962b92
commit be460675bc
2 changed files with 6 additions and 1 deletions

View File

@ -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
--------------------------------------------------------------------------------

View File

@ -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())