Giter VIP home page Giter VIP logo

Comments (6)

weavejester avatar weavejester commented on May 21, 2024

It's hard to tell without more information, but my best guess is that you're running out of entropy for your random number generator. Does the problem persist if you switch to the memory-store?

from ring.

AKurilin avatar AKurilin commented on May 21, 2024

I was unable to reproduce the issue with the default memory story.

from ring.

weavejester avatar weavejester commented on May 21, 2024

That very strongly indicates that you're running out of entropy in your system, then. When it runs out, the process blocks until it can gather enough entropy to securely encrypt the cookie.

from ring.

AKurilin avatar AKurilin commented on May 21, 2024

Sounds good, nothing you can do about then. Do you have any recommendations for what I could look into to potentially avoid bumping into this or improve the situation?

from ring.

weavejester avatar weavejester commented on May 21, 2024

It really depends on your operating system. My experience with production systems is that the amount of network I/O provides sufficient entropy that this isn't an issue, but YMMV.

It's also possible that the cookie middleware might be using more entropy than it needs, but if so, I'm not smart enough to spot it in the code. :)

from ring.

AKurilin avatar AKurilin commented on May 21, 2024

Great, thanks for the explanation. Appreciate you looking into this.

from ring.

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.