Skip to content

Commit f0d8852

Browse files
committed
Remove debug asserts
1 parent e0d1580 commit f0d8852

File tree

1 file changed

+0
-2
lines changed
  • src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler

1 file changed

+0
-2
lines changed

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs

-2
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, boo
497497
{
498498
Debug.Assert(_currentRequest == null, $"Expected null {nameof(_currentRequest)}.");
499499
Debug.Assert(_readBuffer.ActiveLength == 0, "Unexpected data in read buffer");
500-
Debug.Assert(_readAheadTaskStatus != ReadAheadTask_Started);
501500

502501
MarkConnectionAsNotIdle();
503502

@@ -570,7 +569,6 @@ public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, boo
570569
// meaning that PrepareForReuse would have failed, and we wouldn't have called SendAsync.
571570
// The task therefore shouldn't be 'default', as it's representing an async operation that had to yield at some point.
572571
Debug.Assert(_readAheadTask != default);
573-
Debug.Assert(_readAheadTaskStatus == ReadAheadTask_CompletionReserved);
574572

575573
// Handle the pre-emptive read. For the async==false case, hopefully the read has
576574
// already completed and this will be a nop, but if it hasn't, the caller will be forced to block

0 commit comments

Comments
 (0)