Coder Social home page Coder Social logo

Comments (4)

Tratcher avatar Tratcher commented on June 19, 2024

It's coming from here:

try
{
await feature.Session.CommitAsync(context.RequestAborted);
}
catch (Exception ex)
{
_logger.ErrorClosingTheSession(ex);
}

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.

from session.

amirjalali1 avatar amirjalali1 commented on June 19, 2024

@Tratcher
will it be available in version 2.0.1. and is there any release date for version 2.0.1 ?
is it really an error? and is there any solution for this issue?
i set log level to warning and above.
currently my log db has get so cluttered because of this error.

from session.

Tratcher avatar Tratcher commented on June 19, 2024

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.

from session.

muratg avatar muratg commented on June 19, 2024

@Tratcher agreed. @Eilon, patch candidate in 2.0. Idea is the to

  1. Lower the log level, to Info
  2. Change the message. Remove the stack trace and add a line mentioning client disconnect.

from session.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.