#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"
Go to the source code of this file.
Namespaces | |
| namespace | libdap |
Defines | |
| #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) |
| #define CACHE_FOLDER_PCT 10 |
Definition at line 110 of file HTTPCache.cc.
Referenced by libdap::HTTPCache::set_max_size().
| #define CACHE_GC_PCT 10 |
Definition at line 111 of file HTTPCache.cc.
Referenced by libdap::HTTPCache::set_max_size().
| #define CACHE_INDEX ".index" |
Definition at line 99 of file HTTPCache.cc.
| #define CACHE_LOC "/tmp/" |
Definition at line 96 of file HTTPCache.cc.
| #define CACHE_LOCK ".lock" |
Definition at line 100 of file HTTPCache.cc.
| #define CACHE_META ".meta" |
Definition at line 101 of file HTTPCache.cc.
Referenced by libdap::HTTPCacheTable::remove_cache_entry().
| #define CACHE_ROOT "dods-cache/" |
Definition at line 97 of file HTTPCache.cc.
| #define CACHE_TOTAL_SIZE 20 |
Definition at line 109 of file HTTPCache.cc.
| #define DIR_SEPARATOR_CHAR '/' |
Definition at line 88 of file HTTPCache.cc.
| #define DIR_SEPARATOR_STR "/" |
Definition at line 89 of file HTTPCache.cc.
| #define DUMP_FREQUENCY 10 |
Definition at line 106 of file HTTPCache.cc.
Referenced by libdap::HTTPCache::cache_response().
| #define MAX_CACHE_ENTRY_SIZE 3 |
Definition at line 113 of file HTTPCache.cc.
| #define MEGA 0x100000L |
Definition at line 108 of file HTTPCache.cc.
Referenced by libdap::HTTPCache::get_max_entry_size(), libdap::HTTPCache::get_max_size(), libdap::HTTPCache::set_max_entry_size(), and libdap::HTTPCache::set_max_size().
| #define MIN_CACHE_TOTAL_SIZE 5 |
Definition at line 112 of file HTTPCache.cc.
Referenced by libdap::HTTPCache::set_max_size().
| #define MKDIR | ( | a, | |||
| b | ) | mkdir((a), (b)) |
Definition at line 84 of file HTTPCache.cc.
Referenced by libdap::HTTPCacheTable::create_hash_directory().
| #define MKSTEMP | ( | a | ) | mkstemp((a)) |
Definition at line 87 of file HTTPCache.cc.
Referenced by libdap::HTTPCacheTable::create_location().
| #define NO_LM_EXPIRATION 24*3600 |
Definition at line 104 of file HTTPCache.cc.
| #define REMOVE | ( | a | ) | remove((a)) |
Definition at line 86 of file HTTPCache.cc.
Referenced by libdap::HTTPCacheTable::cache_index_delete(), libdap::HTTPCache::cache_response(), and libdap::HTTPCacheTable::remove_cache_entry().
| #define UMASK | ( | a | ) | umask((a)) |
Definition at line 85 of file HTTPCache.cc.
1.6.1