Changeset 3aff94d in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Oct 31, 2018, 3:20:28 AM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
b47dc70
Parents:
267a27a
Message:

Include cache status in mod_status reports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r267a27a r3aff94d  
    3434
    3535#include <ap_socache.h>
     36#include <mod_status.h>
    3637#include <apr_escape.h>
    3738#include <util_mutex.h>
     
    519520    return 0;
    520521}
     522
     523
     524
     525int mgs_cache_status(mgs_cache_t cache, const char *header_title,
     526                     request_rec *r, int flags)
     527{
     528    if (!(flags & AP_STATUS_SHORT))
     529        ap_rprintf(r, "<h3>%s:</h3>\n", header_title);
     530    else
     531        ap_rprintf(r, "%s:\n", header_title);
     532
     533    if (cache->prov->flags & AP_SOCACHE_FLAG_NOTMPSAFE)
     534        apr_global_mutex_lock(cache->mutex);
     535    cache->prov->status(cache->socache, r, flags);
     536    if (cache->prov->flags & AP_SOCACHE_FLAG_NOTMPSAFE)
     537        apr_global_mutex_unlock(cache->mutex);
     538
     539    return OK;
     540}
Note: See TracChangeset for help on using the changeset viewer.