We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3be2a4e commit fe27890Copy full SHA for fe27890
src/Servers/HttpSys/src/NativeInterop/RequestQueue.cs
@@ -180,10 +180,13 @@ public void Dispose()
180
181
_disposed = true;
182
183
+ // Close the request queue handle first to cancel any pending IO operations.
184
+ // This must happen before disposing BoundHandle, as pending operations need
185
+ // to be cancelled and cleaned up using the BoundHandle.
186
PInvoke.HttpCloseRequestQueue(Handle);
187
188
BoundHandle.Dispose();
- Handle.Dispose();
189
+ Handle.SetHandleAsInvalid();
190
}
191
192
private void CheckDisposed()
0 commit comments