This repository was archived by the owner on Nov 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
System.OperationCanceledException at Microsoft.Extensions.Caching.Redis.RedisCache+<RefreshAsync>d__25.MoveNext #189
Comments
It's coming from here: Session/src/Microsoft.AspNetCore.Session/SessionMiddleware.cs Lines 115 to 122 in f633547
What's new in 2.0 is that IDistributedCache supports CancellationTokens, so Session passes the RequestAborted token. The effect of this is that if the client disconnects before the response is finished then their session changes are not persisted and you get this error logged. We should consider special casing this exception type and downgrading the log level. |
@Tratcher |
We haven't made any changes yet and have not decided if this should be included in any patches. @muratg We've gotten several hits on this. Adjusting the logging may be appropriate for a patch. |
Tratcher
added a commit
that referenced
this issue
Sep 28, 2017
Tratcher
added a commit
that referenced
this issue
Sep 29, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From @TrplM on August 29, 2017 6:27
Hi
I am getting a lot of these errors reported in azure app insights. Any idea on what could be causing this and how to track down what is throwing the exception.
This is the stack trace logged in app insights
Copied from original issue: aspnet/Caching#351
The text was updated successfully, but these errors were encountered: