libdap++  Updated for version 3.8.2
HTTPCache.cc File Reference
#include "config.h"
#include <pthread.h>
#include <limits.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cstring>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <set>
#include "Error.h"
#include "InternalErr.h"
#include "ResponseTooBigErr.h"
#include "SignalHandler.h"
#include "HTTPCacheInterruptHandler.h"
#include "HTTPCacheTable.h"
#include "HTTPCache.h"
#include "util_mit.h"
#include "debug.h"
Include dependency graph for HTTPCache.cc:

Go to the source code of this file.

Namespaces

 libdap
 

Macros

#define CACHE_FOLDER_PCT   10
 
#define CACHE_GC_PCT   10
 
#define CACHE_INDEX   ".index"
 
#define CACHE_LOC   "/tmp/"
 
#define CACHE_LOCK   ".lock"
 
#define CACHE_META   ".meta"
 
#define CACHE_ROOT   "dods-cache/"
 
#define CACHE_TOTAL_SIZE   20
 
#define DIR_SEPARATOR_CHAR   '/'
 
#define DIR_SEPARATOR_STR   "/"
 
#define DUMP_FREQUENCY   10
 
#define MAX_CACHE_ENTRY_SIZE   3
 
#define MEGA   0x100000L
 
#define MIN_CACHE_TOTAL_SIZE   5
 
#define MKDIR(a, b)   mkdir((a), (b))
 
#define MKSTEMP(a)   mkstemp((a))
 
#define NO_LM_EXPIRATION   24*3600
 
#define REMOVE(a)   remove((a))
 
#define UMASK(a)   umask((a))
 

Functions

bool libdap::is_hop_by_hop_header (const string &header)
 

Macro Definition Documentation

◆ CACHE_FOLDER_PCT

#define CACHE_FOLDER_PCT   10

Definition at line 110 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::instance(), and libdap::HTTPCache::set_max_size().

◆ CACHE_GC_PCT

#define CACHE_GC_PCT   10

Definition at line 111 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::instance(), and libdap::HTTPCache::set_max_size().

◆ CACHE_INDEX

#define CACHE_INDEX   ".index"

Definition at line 99 of file HTTPCache.cc.

◆ CACHE_LOC

#define CACHE_LOC   "/tmp/"

Definition at line 96 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::get_cache_root().

◆ CACHE_LOCK

#define CACHE_LOCK   ".lock"

Definition at line 100 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::~HTTPCache().

◆ CACHE_META

#define CACHE_META   ".meta"

◆ CACHE_ROOT

#define CACHE_ROOT   "dods-cache/"

Definition at line 97 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::get_cache_root().

◆ CACHE_TOTAL_SIZE

#define CACHE_TOTAL_SIZE   20

Definition at line 109 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::instance().

◆ DIR_SEPARATOR_CHAR

#define DIR_SEPARATOR_CHAR   '/'

Definition at line 88 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::get_cache_root().

◆ DIR_SEPARATOR_STR

#define DIR_SEPARATOR_STR   "/"

Definition at line 89 of file HTTPCache.cc.

◆ DUMP_FREQUENCY

#define DUMP_FREQUENCY   10

Definition at line 106 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::cache_response().

◆ MAX_CACHE_ENTRY_SIZE

#define MAX_CACHE_ENTRY_SIZE   3

Definition at line 113 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::instance().

◆ MEGA

◆ MIN_CACHE_TOTAL_SIZE

#define MIN_CACHE_TOTAL_SIZE   5

Definition at line 112 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::set_max_size().

◆ MKDIR

#define MKDIR (   a,
 
)    mkdir((a), (b))

Definition at line 84 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::get_cache_root().

◆ MKSTEMP

#define MKSTEMP (   a)    mkstemp((a))

Definition at line 87 of file HTTPCache.cc.

◆ NO_LM_EXPIRATION

#define NO_LM_EXPIRATION   24*3600

Definition at line 104 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::instance().

◆ REMOVE

#define REMOVE (   a)    remove((a))

◆ UMASK

#define UMASK (   a)    umask((a))

Definition at line 85 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::get_cache_root().