Skip to content

Commit 1f4a3eb

Browse files
authored
Fixed disposal of overlapped (#29466)
1 parent ea72e31 commit 1f4a3eb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ msbuild.ProjectImports.zip
4343
StyleCop.Cache
4444
UpgradeLog.htm
4545
.idea
46+
*.svclog

src/Servers/HttpSys/src/AsyncAcceptContext.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ protected virtual void Dispose(bool disposing)
177177
_requestContext.ReleasePins();
178178
_requestContext.Dispose();
179179
_requestContext = null;
180+
}
180181

181-
var boundHandle = Server.RequestQueue.BoundHandle;
182+
var boundHandle = Server.RequestQueue.BoundHandle;
182183

183-
if (_overlapped != null)
184-
{
185-
boundHandle.FreeNativeOverlapped(_overlapped);
186-
_overlapped = null;
187-
}
184+
if (_overlapped != null)
185+
{
186+
boundHandle.FreeNativeOverlapped(_overlapped);
187+
_overlapped = null;
188188
}
189189
}
190190
}

0 commit comments

Comments
 (0)