Changeset c005645 in mod_gnutls for src/gnutls_config.c


Ignore:
Timestamp:
Jun 8, 2016, 3:31:29 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, proxy-ticket, upstream
Children:
c55902b
Parents:
eb63377
Message:

Mutex for DBM cache access

I noticed that with a DBM cache enabled and session tickets disabled
even a handful of parallel connections trashed the cache database, and
consequently the error log. According to comments and documentation on
mod_socache_dbm the APR DBM module is not thread or multi-process
safe, so a global mutex is necessary. With the mutex the cache
corruption disappears in my benchmarks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_config.c

    reb63377 rc005645  
    958958    sc->cache_type = mgs_cache_unset;
    959959    sc->cache_config = NULL;
     960    sc->cache_mutex = NULL;
    960961    sc->tickets = GNUTLS_ENABLED_UNSET;
    961962    sc->priorities = NULL;
Note: See TracChangeset for help on using the changeset viewer.