Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 59e1ff7

Browse files
committed
Fix BenchmarkApplication.
1 parent 9e8459c commit 59e1ff7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

benchmarkapps/PlatformBenchmarks/BenchmarkApplication.HttpConnection.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ private bool ParseHttpRequest(ref ReadOnlySequence<byte> buffer, bool isComplete
9595
consumed = reader.Position;
9696
examined = consumed;
9797
}
98+
99+
buffer = buffer.Slice(consumed);
98100
}
99101

100102
if (state == State.Headers)
@@ -105,6 +107,8 @@ private bool ParseHttpRequest(ref ReadOnlySequence<byte> buffer, bool isComplete
105107
consumed = reader.Position;
106108
examined = consumed;
107109
}
110+
111+
buffer = buffer.Slice(consumed);
108112
}
109113

110114
if (state != State.Body && isCompleted)

0 commit comments

Comments
 (0)