Skip to content

Commit

Permalink
Remove debug asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Jun 20, 2024
1 parent e0d1580 commit f0d8852
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, boo
{
Debug.Assert(_currentRequest == null, $"Expected null {nameof(_currentRequest)}.");
Debug.Assert(_readBuffer.ActiveLength == 0, "Unexpected data in read buffer");
Debug.Assert(_readAheadTaskStatus != ReadAheadTask_Started);
MarkConnectionAsNotIdle();
Expand Down Expand Up @@ -570,7 +569,6 @@ public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, boo
// meaning that PrepareForReuse would have failed, and we wouldn't have called SendAsync.
// The task therefore shouldn't be 'default', as it's representing an async operation that had to yield at some point.
Debug.Assert(_readAheadTask != default);
Debug.Assert(_readAheadTaskStatus == ReadAheadTask_CompletionReserved);
// Handle the pre-emptive read. For the async==false case, hopefully the read has
// already completed and this will be a nop, but if it hasn't, the caller will be forced to block
Expand Down

0 comments on commit f0d8852

Please sign in to comment.