Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed disposal of overlapped #29466

Merged
merged 1 commit into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed disposal of overlapped
  • Loading branch information
davidfowl committed Jan 20, 2021
commit 9373463afd51918b1d5d635022a16d414a4c09d3
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ msbuild.ProjectImports.zip
StyleCop.Cache
UpgradeLog.htm
.idea
*.svclog
12 changes: 6 additions & 6 deletions src/Servers/HttpSys/src/AsyncAcceptContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ protected virtual void Dispose(bool disposing)
_requestContext.ReleasePins();
_requestContext.Dispose();
_requestContext = null;
}

var boundHandle = Server.RequestQueue.BoundHandle;
var boundHandle = Server.RequestQueue.BoundHandle;

if (_overlapped != null)
{
boundHandle.FreeNativeOverlapped(_overlapped);
_overlapped = null;
}
if (_overlapped != null)
{
boundHandle.FreeNativeOverlapped(_overlapped);
_overlapped = null;
}
}
}
Expand Down