1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-08 04:22:21 +03:00
Commit Graph

13 Commits

Author SHA1 Message Date
Jim Jagielski
103f776c25 Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174748 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:38:09 +00:00
William A. Rowe Jr
5740b5cfd9 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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@958157 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 00:26:01 +00:00
Jeff Trawick
58afc0a00e fix typo in comment
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@908164 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 19:23:06 +00:00
William A. Rowe Jr
4444e07d2d Illustrate an ->iterator() implementation for mod_socache_shmcb.
Clarify that the iterator aught will make the users' life easier
by appending trailing \0 null chars.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907937 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 05:48:58 +00:00
William A. Rowe Jr
e6ce5422d0 The iterator data is not volatile, data aught to be const
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907929 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 04:28:35 +00:00
William A. Rowe Jr
29fe6fa920 The iterator data is not volatile, datalen by value is just fine
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907928 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 04:28:13 +00:00
William A. Rowe Jr
c22700db7a Let us be clearer about suggestions vs. necessity
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907927 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 04:27:23 +00:00
William A. Rowe Jr
3cc4b9db61 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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907917 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 03:43:18 +00:00
Joe Orton
aa062c60f3 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.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@726059 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 15:56:15 +00:00
Joe Orton
172d563455 * include/ap_socache.h: Use C++ safety wrappers, and rename ->delete
to ->remove since the former is a C++ reserved word.

* modules/ssl/ssl_scache.c (ssl_scache_remove): Update accordingly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@724745 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 15:19:08 +00:00
Joe Orton
b078f2374e * include/ap_socache.h: Define AP_SOCACHE_DEFAULT_PROVIDER as a
default provider name, to allow consumers to use a default provider
  if not configured otherwise.

* modules/cache/mod_socache_shmcb.c (register_hooks): Register shmcb
  as the default provider.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@724723 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 14:52:59 +00:00
Joe Orton
dce91079c1 Reduce config overhead for use of socache interface by allowing
default paths to be used if none are configured:

* include/ap_socache.h (ap_socache_provider_t::create):
  Allow arg to be NULL to force use of defaults.
  (ap_socache_provider_t::init): Rename 'namespace' parameter to
  'cname' and restrict to allow use in filesystem paths.
  
* modules/cache/mod_socache_dbm.c (socache_dbm_create, 
  socache_dbm_init),
  modules/cache/mod_socache_shmcb.c (socache_shmcb_create, 
  socache_shmcb_init): 
  Default to use of runtimedir-relative paths if no
  explicit path is configured.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@724682 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 13:11:45 +00:00
William A. Rowe Jr
6f0e96cfbc ap_ namespace, a dead giveaway that this information should reside
in the general include\ directory

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664232 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 01:13:10 +00:00