f7317ff316c2b141feea31bddb74d5d3fa1584ed 1649491 |
|
05-Jan-2015 |
jorton |
* modules/cache/mod_socache_memcache.c (socache_mc_store): Pass
through expiration time.
Submitted by: Faidon Liambotis <paravoid debian.org>, jorton |
4f50e7f85eb68ce458a90d1c8b373afee4586e85 1500362 |
|
07-Jul-2013 |
fuankg |
Fix some compiler warnings. |
00e81fbfc423082caf740f0c3db78b38bba200ef 1429561 |
|
06-Jan-2013 |
jailletc36 |
According top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex' instead of
apr_snprintf(..., "%02X" for each character.
Output is *not* exactly the same. It was uppercase, now it is lowercase.
According to my understanding, this is not an issue.
Should it be, a call to ap_str_toupper should be added.
The speedup would be less, but still significant. |
e8a023c6d3ea9f0faa895cbc7bdd649efb8a01d6 1210221 |
|
04-Dec-2011 |
sf |
Change the provider names to match the module names:
mod_slotmem_shm: shared -> shm
mod_socache_memcache: mc -> memcache |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
678a15e91d6a44569c956445442731bb64a98a63 1208110 |
|
29-Nov-2011 |
sf |
Remove more log message prefixes that are now redundant as the
the error log format includes the module name. |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
cf25139efeb705911e931b68a521d8b65ff922ee 958157 |
|
26-Jun-2010 |
wrowe |
Introduce an socache iterator 'userctx' for the user to track the
context of their own callback.
Breaks API, but we probably wanted an mmn reset between .6 and .7
betas for unintentional/unnoticed ABI breaks. |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
4b0e00b3346b3e8fd53219d060f4cf6676847a06 923791 |
|
16-Mar-2010 |
jim |
Align "hidden" function names with external... picky, but
less confusing |
bd2f929f6974a82e4fd33e0393d2b0c91f6f033a 918655 |
|
03-Mar-2010 |
trawick |
fix these warnings (and presumably a similar one in mod_socache_dc.c):
mod_socache_shmcb.c:625: warning: no previous prototype for ‘socache_shmcb_iterate’
mod_socache_dbm.c:505: warning: no previous prototype for ‘socache_dbm_iterate’
mod_socache_memcache.c:290: warning: no previous prototype for ‘socache_mc_iterate’ |
a10d8ce69c26142323c66adaba109be1b4baa379 907917 |
|
09-Feb-2010 |
wrowe |
distcache already demonstrates sub-second resolutions, but much more
importantly, let us not introduce more Y2k38 bugs?
Changes the ->store method to take expiry as an apr_time_t, and introduce
a placeholder to implement provider-specific iterators of the current
elements of an socache store.
Cleans up confusion where expiry might be confused with a timeout-period.
Finally clean up some hUngarian noteAtion. Someones' hands need to be slapped. |
eab15974b1d8bbcb6d4f9ec75527b39ffded82aa 757396 |
|
23-Mar-2009 |
jorton |
* modules/cache/mod_socache_memcache.c,
modules/cache/mod_socache_shmcb.c, modules/cache/mod_socache_dbm.c:
Remove references to "SSL" throughout comments and code. |
501e60e433e1914c64f642114fbb4fb9be9e2ca9 726059 |
|
12-Dec-2008 |
jorton |
socache API tweaks based on chrisd's review:
* include/ap_socache.h (ap_socache_provider_t::store): Take a pool.
(ap_socache_provider_t::retrieve): Guarantee APR_NOTFOUND for a
"not found" result.
(ap_socache_provider_t::remove): Return an apr_status_t.
* modules/cache/mod_socache_dc.c, modules/cache/mod_socache_dbm.c,
modules/cache/mod_socache_shmcb,
modules/cache/mod_socache_memcache.c: Adjust accordingly.
* modules/ssl/ssl_scache.c (ssl_scache_store): Pass pool to
sesscache->store. |
5775fa5bc1b78306295a3a0ce970fb390c4061a4 726008 |
|
12-Dec-2008 |
jorton |
* modules/cache/mod_socache_memcache.c (socache_mc_init): Remove references
to SSL in log messages.
(socache_mc_retrieve): Use 'data' not 'der'; correctly return an error
for the overflow case. |
d6347d2d215db87038d0aff55c690c30f7ccccb6 726007 |
|
12-Dec-2008 |
jorton |
* modules/cache/mod_socache_memcache.c (socache_mc_create): Fail if
no argument is given.
(socache_mc_init): Increment the taglen field.
(socache_mc_id2key): Renamed from mc_session_id2sz and catch key
name overflow, per rpluem's review.
(socache_mc_store, socache_mc_retrieve, socache_mc_remove):
Adjust for new id2key interface. |
3633c9005882c13f82bb6be587f5402c123993ee 664239 |
|
07-Jun-2008 |
wrowe |
Signedness error |
6c61d6d39916f23d49386ce9e9148f2d52f730d5 648499 |
|
16-Apr-2008 |
chrisd |
remove const on socache module declarations to avoid segfault in
ap_setup_prelinked_modules() when modules linked in at compile time |
fca945cb6bed035dcc6bbced5e327bbd4d8420ab 645978 |
|
08-Apr-2008 |
jorton |
Adjust socache init interface to take sizing hints, and namespace tag
for memcache:
* modules/cache/ap_socache.h (struct ap_socache_hints): New structure.
Change init callback to take namespace string and hints structure pointer.
* modules/cache/mod_socache_dc.c (socache_dc_init): Adjust accordingly.
* modules/cache/mod_socache_dbm.c (struct ap_socache_instance_t): Rename
timeout field to expiry_interval.
(socache_dbm_init, socache_dbm_create): Take expiry interval from
hints rather than hard-code to 30.
(socache_dbm_expire): Update for timeout field rename.
* modules/cache/mod_socache_shmcb.c (socache_shmcb_init): Adjust for
hints and namespace; adjust subcache index sizing heuristics to use
passed-in hints.
* modules/cache/mod_socache_memcache.c (struct ap_socache_instance_t):
Add tag, taglen fields.
(socache_mc_init): Store the passed-in namespace in instance
structure.
(mc_session_id2sz): Adjust to not take context, use configured
tag as string prefix, and not use a return value.
(socache_mc_store, socache_mc_retrieve, socache_mc_remove):
Adjust for mc_session_id2sz interface changes.
* modules/ssl/ssl_scache.c (ssl_scache_init): Pass namespace and hints
to socache provider init function. |
2685f3814b77577ef7b2523442dab1ca88df1e41 645924 |
|
08-Apr-2008 |
jorton |
* modules/cache/ap_socache.h: Add ap_socache_instance_t object type.
Adjust the provider interface to use this instance type throughout.
* modules/cache/mod_socache_dbm.c,
modules/cache/mod_socache_memcache.c,
modules/cache/mod_socache_shmcb.c,
modules/cache/mod_socache_dc.c: Adjust all implementations to
define the instance object in place of the "struct context", and
to take this object directly in the provider interface. |
0797faae937515a5225a36db4a1ec79480d2555c 645844 |
|
08-Apr-2008 |
jorton |
Session cache interface redesign, Part 8:
Abstract out the mod_ssl session caching interface into a separate set
of modules, mod_socache_*.
* modules/cache/ap_socache.h: New file.
* modules/cache/config.m4: Copy CHECK_DISTCACHE from ../ssl/config.m4;
add new socache modules.
* modules/cache/mod_socache_dbm.c: Copied from ../ssl/ssl_scache_dbm.c.
s/ssl_scache_/socache_/; add module structure and register_hooks.
* modules/cache/mod_socache_shmcb.c: Copied from ../ssl/ssl_scache_shmcb.c.
s/ssl_scache_/socache_/; add module structure and register_hooks.
Add SHMCB_MAX_SIZE definition, replacing APR_SHM_MAXSIZE.
* modules/cache/mod_socache_memcache.c: Copied from
../ssl/ssl_scache_memcache.c.
s/ssl_scache_/socache_/; add module structure and register_hooks.
Enable for APR-Util 1.3.x at compile-time, omitting configure-time
checks.
* modules/cache/mod_socache_dc.c: Copied from ../ssl/ssl_scache_dc.c.
s/ssl_scache_/socache_/; add module structure and register_hooks. |