address review feedback and fix test issue
authorGeoff Kizer <geoffrek>
Wed, 24 Jul 2019 07:47:35 +0000 (00:47 -0700)
committerGeoff Kizer <geoffrek>
Wed, 24 Jul 2019 07:47:35 +0000 (00:47 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/d6e6f52c928f56b424b08fcf6e08ea84a74748ab

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs

index c95fdc9..429d29e 100644 (file)
@@ -758,7 +758,7 @@ namespace System.Net.Http
             // We can't validate that we hold the semaphore, but we can at least validate that someone is holding it.
             Debug.Assert(_writerLock.CurrentCount == 0);
 
-            EndWrite(false);
+            EndWrite(forceFlush: false);
         }
 
         private void EndWrite(bool forceFlush)
index 93782cf..154efba 100644 (file)
@@ -2687,8 +2687,6 @@ namespace System.Net.Http.Functional.Tests
                 // We should not reach retry limit without failing.
                 Assert.NotEqual(0, maxCount);
 
-                var headers = new HttpHeaderData[] { new HttpHeaderData("x-last", "done") };
-                await connection.SendResponseHeadersAsync(streamId, endStream: true, isTrailingHeader : true, headers: headers);
                 try
                 {
                     await connection.SendGoAway(streamId);