1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
Christophe Jaillet
97c9589568 Group bit field values in order to save some memory.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789000 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 19:52:43 +00:00
Christophe Jaillet
2cd566b817 Improve indentation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788998 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 19:49:58 +00:00
Christophe Jaillet
8533abfc41 Save a few cycles.
'apr_pstrcatv' can compute the length of the new string for us.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788996 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 19:48:19 +00:00
Yann Ylavic
bcbfbe4ace mod_cache_socache: Fix a possible cached entity body corruption when it
is received from an origin server in multiple batches and forwarded by
mod_proxy.

Upstream buckets should be setaside when saving response body (store_body),
but since those will finally be flatten in the cache buffer (commit_entity),
let's save them directly into the buffer to avoid heap allocation(s) and
the final copy.

Reported by: Mike Pastore <mike oobak.org> 


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1721899 13f79535-47bb-0310-9956-ffa450edef68
2015-12-28 12:09:29 +00:00
Christophe Jaillet
fcae67eba7 Remove useless line
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700328 13f79535-47bb-0310-9956-ffa450edef68
2015-08-31 20:17:38 +00:00
Rainer Jung
0c12000aed Add output for "?auto" version of server-status
to proxy status, mod_ssl session cache info,
mod_cache_socache and the status hook of the
individual socache implementations.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1671397 13f79535-47bb-0310-9956-ffa450edef68
2015-04-05 13:54:22 +00:00
Rainer Jung
49fd895b9e Silence build warning about missing prototype.
Followup to r1629507.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629652 13f79535-47bb-0310-9956-ffa450edef68
2014-10-06 13:39:30 +00:00
Rainer Jung
41c01c3fd4 mod_cache_socache: Change average object size
hint from 32 bytes to 2048 bytes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629508 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 17:05:21 +00:00
Rainer Jung
5cbd89b1da mod_cache_socache: Add cache status to server-status.
The status_hook simply calls the status function of
socache, very much like mod_ssl does for the ssl
session cache.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629507 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 17:00:31 +00:00
Jeff Trawick
11a39fba77 don't pass uninitialized rv passed to ap_log_rerror()
(rv wasn't interesting / follow an existing example)

stop throwing away a pointer on the heap

(clang scan-build)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534892 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 01:32:32 +00:00
Rainer Jung
472f2a43ba Fix "variable 'rv' may be used uninitialized
in this function" warning.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1494536 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 10:21:46 +00:00
Graham Leggett
1dbe136a17 mod_cache_socache: Make sure the CacheSocacheMaxSize directive is merged
correctly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1492663 13f79535-47bb-0310-9956-ffa450edef68
2013-06-13 13:16:18 +00:00
Graham Leggett
c0d199e03a mod_cache_socache: Use the name of the socache implementation when performing
a lookup rather than using the raw arguments.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491458 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 14:08:43 +00:00
Guenter Knauf
c6971bfe19 Fixed signed<->unsigned compiler warning.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490550 13f79535-47bb-0310-9956-ffa450edef68
2013-06-07 09:04:32 +00:00
Graham Leggett
e362111d24 mod_cache: Ensure that updated responses to HEAD requests don't get
mistakenly paired with a previously cached body. Ensure that any existing
body is removed when a HEAD request is cached.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1479411 13f79535-47bb-0310-9956-ffa450edef68
2013-05-05 22:27:31 +00:00
Graham Leggett
6e77e5b20f mod_cache: Invalidate cached entities in response to RFC2616 Section
13.10 Invalidation After Updates or Deletions. PR 15868

Resolves outstanding issue with r1070179 as per
http://www.gossamer-threads.com/lists/apache/dev/395830?do=post_view_threaded#395830


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1478140 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 18:49:04 +00:00
Graham Leggett
869a9b68ed mod_cache_socache: Don't clean up too soon. If we do, revalidated requests
lose their bodies.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1418648 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:04:33 +00:00
Ruediger Pluem
cb1d5f4750 * Ensure that nkey is initialized.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1406760 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 19:26:48 +00:00
Graham Leggett
c764558c0d Apply proper APLOGNO codes for mod_cache_socache.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1391398 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 11:10:06 +00:00
Graham Leggett
22c2623820 Fix the return values on mod_cache_socache's store_headers() implementation
to return APR errors codes and not DECLINED. We are committed to using this
implementation by this point, and any error should force us to stand down.
Submitted by: trawick
Reviewed by: minfrin


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1391396 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 11:05:55 +00:00
Graham Leggett
55c799dc0d mod_cache_socache: New cache implementation backed by mod_socache
that replaces mod_mem_cache removed from httpd v2.2.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1388660 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 20:10:16 +00:00