Skip to content

Commit d9ccf23

Browse files
committed
Final bad conflicts
1 parent 93a51f5 commit d9ccf23

File tree

3 files changed

+0
-64
lines changed

3 files changed

+0
-64
lines changed

src/Security/CookiePolicy/test/CookieChunkingTests.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,6 @@ public void AppendLargeCookie_WithOptions_Appended()
4444
Assert.Equal($"TestCookie={testString}; expires={now.AddMinutes(5).ToString("R")}; max-age=300; domain=foo.com; path=/bar; secure; samesite=strict; httponly", values[0]);
4545
}
4646

47-
[Fact]
48-
public void AppendLargeCookie_WithOptions_Appended()
49-
{
50-
HttpContext context = new DefaultHttpContext();
51-
var now = DateTimeOffset.UtcNow;
52-
var options = new CookieOptions
53-
{
54-
Domain = "foo.com",
55-
HttpOnly = true,
56-
SameSite = SameSiteMode.Strict,
57-
Path = "/bar",
58-
Secure = true,
59-
Expires = now.AddMinutes(5),
60-
MaxAge = TimeSpan.FromMinutes(5)
61-
};
62-
var testString = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
63-
new ChunkingCookieManager() { ChunkSize = null }.AppendResponseCookie(context, "TestCookie", testString, options);
64-
65-
var values = context.Response.Headers["Set-Cookie"];
66-
Assert.Single(values);
67-
Assert.Equal($"TestCookie={testString}; expires={now.AddMinutes(5).ToString("R")}; max-age=300; domain=foo.com; path=/bar; secure; samesite=strict; httponly", values[0]);
68-
}
69-
7047
[Fact]
7148
public void AppendLargeCookieWithLimit_Chunked()
7249
{

src/SignalR/common/Http.Connections/src/Internal/HttpConnectionContext.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -334,27 +334,6 @@ private async Task WaitOnTasks(Task applicationTask, Task transportTask, bool cl
334334
Transport?.Output.Complete();
335335
Transport?.Input.Complete();
336336
}
337-
338-
Application?.Input.CancelPendingRead();
339-
340-
await transportTask.NoThrow();
341-
Application?.Input.Complete();
342-
343-
Log.WaitingForTransportAndApplication(_logger, TransportType);
344-
345-
// A poorly written application *could* in theory get stuck forever and it'll show up as a memory leak
346-
// Wait for application so we can complete the writer safely
347-
await applicationTask.NoThrow();
348-
Log.TransportAndApplicationComplete(_logger, TransportType);
349-
350-
// Shutdown application side now that it's finished
351-
Transport?.Output.Complete(applicationTask.Exception?.InnerException);
352-
353-
// Close the reading side after both sides run
354-
Transport?.Input.Complete();
355-
356-
// Observe exceptions
357-
await Task.WhenAll(transportTask, applicationTask);
358337
}
359338

360339
// Notify all waiters that we're done disposing

src/SignalR/server/Core/src/HubConnectionContext.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -702,26 +702,6 @@ internal void StopClientTimeout()
702702
_receivedMessageTimeoutEnabled = false;
703703
}
704704
}
705-
finally
706-
{
707-
_ = InnerAbortConnection(connection);
708-
}
709-
}
710-
711-
private static async Task InnerAbortConnection(HubConnectionContext connection)
712-
{
713-
// We lock to make sure all writes are done before triggering the completion of the pipe
714-
await connection._writeLock.WaitAsync();
715-
try
716-
{
717-
// Communicate the fact that we're finished triggering abort callbacks
718-
// HubOnDisconnectedAsync is waiting on this to complete the Pipe
719-
connection._abortCompletedTcs.TrySetResult(null);
720-
}
721-
finally
722-
{
723-
connection._writeLock.Release();
724-
}
725705
}
726706

727707
private static class Log

0 commit comments

Comments
 (0)