Skip to content
Commits on Jul 22, 2011
  1. @tmm1
  2. @tmm1
  3. @tmm1
  4. @tmm1
  5. @tmm1
  6. Check return value of mc_new

    committed Jul 22, 2011
Commits on Mar 24, 2011
  1. Remove keys from memcache if requested, and cleanup error handling

    committed Mar 24, 2011
    Removing keys is easy -- a quick mc_delete and we're done.  The error
    handling was basically just moving the big blob of end-times cleanup at the
    end of each function into per-store-type blobs.  This means that errors in
    (say) the SHM store won't prevent a memcache store request from succeeding
    (in the very unlikely event that both are running).
  2. Refactor the memcache setup code out into it's own function

    committed Mar 24, 2011
    Common code goes in common locations.
Commits on Mar 23, 2011
  1. Retrieve SSL sessions from memcache

    committed Mar 24, 2011
    Quite straightforward.
  2. Store SSL sessions in memcache

    committed Mar 24, 2011
    We're only storing the sessions so far, not retrieving them, but it's a good
    proof-of-concept that all of the plumbing is in place to support all
    operations.  You can verify that sessions are, indeed, getting stored, by
    watching what memcache does.
  3. Actually enable memcache session storage

    committed Mar 24, 2011
    One little 'if' statement I missed, and the whole shebang gets disabled.
    How disappointing.
  4. Conditionalise compilation of memcache-specific bits in http_ssl_module

    committed Mar 24, 2011
    There's nothing in here that actually links against or otherwise uses
    libmemcache, but by conditionalising this code we can ensure that attempts
    to configure memcache: session storage support when it's not built-in will
    cause a startup failure, rather than inexplicable lack of session storage.
    Much safer.
  5. Parse "ssl_session_cache memcached:..." config

    committed Mar 23, 2011
    Added appropriate fields to the ngx_ssl_session_cache_cfg_t struct, and
    modified the config parser for the ssl_http module to fill them
    appropriately.
Commits on Mar 22, 2011
  1. Abstract out the external session cache

    committed Mar 23, 2011
    The nginx codebase currently assumes that you've either got an
    OpenSSL-builtin session cache, or a SHM-based shared session cache (which it
    calls the "external session cache").  Since we're trying to add a second
    form of "external session cache" (memcached), we need to start by avoiding
    referring directly to the SHM cache as our external session cache, and put
    in an abstract middleman that will allow us to refer to "the external
    session cache" in general to anyone who doesn't need to know exactly what
    session cache we're using.  For now, that just means adding another struct
    that stores the shm_zone and using that everywhere.
    
    Next step: adding a reference to a memcached store type.
Something went wrong with that request. Please try again.