Changeset c005645 in mod_gnutls for include


Ignore:
Timestamp:
Jun 8, 2016, 3:31:29 PM (18 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, 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
  • include/mod_gnutls.h.in

    r04e6e65 rc005645  
    133133    mgs_cache_e cache_type;
    134134    const char* cache_config;
     135    /* Mutex for cache access (used only if the cache type is not
     136     * thread-safe) */
     137    apr_global_mutex_t *cache_mutex;
    135138
    136139        /* GnuTLS uses Session Tickets */
Note: See TracChangeset for help on using the changeset viewer.