Skip to content

Commit

Permalink
Fixed memory leak of OverlappedData when doing read from server WebSo…
Browse files Browse the repository at this point in the history
…cket stream. (dotnet#33480)
  • Loading branch information
ManickaP authored Mar 12, 2020
1 parent a187089 commit 710fad8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ private unsafe bool ReadAsyncFast(HttpListenerAsyncEventArgs eventArgs)
eventArgs.FinishOperationSuccess((int)bytesReturned, true);
completedAsynchronouslyOrWithError = false;
}
else if (statusCode == Interop.HttpApi.ERROR_HANDLE_EOF)
{
eventArgs.FinishOperationSuccess(0, true);
completedAsynchronouslyOrWithError = false;
}
else
{
completedAsynchronouslyOrWithError = true;
Expand Down

0 comments on commit 710fad8

Please sign in to comment.