Coder Social home page Coder Social logo

Add cache configurability about python-mbedtls HOT 4 CLOSED

synss avatar synss commented on June 12, 2024
Add cache configurability

from python-mbedtls.

Comments (4)

cartoush avatar cartoush commented on June 12, 2024 1

It might do the trick yes, i'll try that, thanks !

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

Hi! Thank you for your feedback. That seems reasonable but not entirely trivial as I will need to wrap an mbedtls_ssl_cache_context * as well. I will look into it.

[Note to self] mbedtls docs:

from python-mbedtls.

cartoush avatar cartoush commented on June 12, 2024

Thanks a lot !

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

mbedtls_ssl_conf_session_cache() is tricky with its two callbacks. Would changing the defaults of the C library be an option for your tests?

https://github.com/ARMmbed/mbedtls/blob/v2.16.12/include/mbedtls/ssl_cache.h#L72-L78

#if !defined(MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT)
#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT       86400   /*!< 1 day  */
#endif

#if !defined(MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES)
#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES      50   /*!< Maximum entries in cache */
#endif

Please have a look here to recompile the C library and its bindings.

from python-mbedtls.

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.