Fix stream leak issue (#2257)

* Fix stream leak issue

* cl
This commit is contained in:
JinmingHu 2021-05-12 17:05:03 +08:00 committed by GitHub
parent ffd0860e00
commit b4fa6b835a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -2,8 +2,14 @@
## 12.0.0-beta.11 (Unreleased)
### Breaking Changes
- Removed `Azure::PagedResponse<T>`.
### Bug Fixes
- Fixed a stream leak issue in `ReliableStream`.
## 12.0.0-beta.10 (2021-04-16)
### New Features

View File

@ -36,7 +36,7 @@ namespace Azure { namespace Storage { namespace _internal {
// forget about the inner stream. We will need to request a new one
// As m_inner is unique_pr, it will be destructed on reassignment (cleaning up network
// session).
this->m_inner.release();
this->m_inner.reset();
(void)e; // todo: maybe log the exception in the future?
if (intent == this->m_options.MaxRetryRequests)
{