From: Ian Holsman Date: Tue, 11 Mar 2003 18:11:33 +0000 (+0000) Subject: reflect backport of mod_deflate.c r1.31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34637efab25647d406fb9bd9102c0134b5d99b78;p=apache reflect backport of mod_deflate.c r1.31 change directive from compressionlevel to deflatecompressionlevel PR: Obtained from: Submitted by: Ian Holsman, Andre Malo Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98982 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index db2151c37f..afa48485ff 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) change directive name from 'compressionlevel' to 'deflatecompressionlevel' + [Ian Holsman, André Malo]] + *) mod_negotiation: quality values are now parsed independent from the current locale. level values are now really parsed as integers. PR 17564. [André Malo] @@ -20,10 +23,6 @@ Changes with Apache 2.1.0-dev *) Linux 2.4+: enable coredumps when Apache is started as root if CoreDumpDir is configured [Greg Ames] - *) you can now specify the compression level for mod_deflate. - [Ian Holsman, Stephen Pierzchala , - Michael Schroepl ] - *) Added the WindowsSocketsWorkaround directive for Windows NT/2000/XP to work around problems with certain VPN and Firewall products that have buggy AcceptEx implementations. @@ -127,10 +126,6 @@ Changes with Apache 2.1.0-dev *) Replace some of the mutex locking in the worker MPM with atomic operations for higher concurrency. [Brian Pane] - *) mod_deflate: Extend the DeflateFilterNote directive to - allow accurate logging of the filter's in- and outstream. - [André Malo] - *) Allow 'make depend' to work with non-GCC compilers. [Justin Erenkrantz] @@ -164,6 +159,14 @@ Changes with Apache 2.1.0-dev Changes with Apache 2.0.45 + *) you can now specify the compression level for mod_deflate. + [Ian Holsman, Stephen Pierzchala , + Michael Schroepl ] + + *) mod_deflate: Extend the DeflateFilterNote directive to + allow accurate logging of the filter's in- and outstream. + [André Malo] + *) Allow SSLMutex to select/use the full range of APR locking mechanisms available to it. Also, fix the bug that SSLMutex uses APR_LOCK_DEFAULT no matter what. PR 8122 [Jim Jagielski, diff --git a/docs/manual/mod/mod_deflate.xml b/docs/manual/mod/mod_deflate.xml index e462a878b1..8d7c903205 100644 --- a/docs/manual/mod/mod_deflate.xml +++ b/docs/manual/mod/mod_deflate.xml @@ -193,7 +193,7 @@ client DeflateFilterNote [type] notename server configvirtual host -type is available since Apache 2.1 +type is available since Apache 2.0.45

The DeflateFilterNote directive @@ -288,15 +288,16 @@ client -CompressionLevel +DeflateCompressionLevel How much compression do we apply to the output -CompressionLevelvalue +DeflateCompressionLevelvalue Zlib's default server configvirtual host +This directive is available since Apache 2.0.45 -

The CompressionLevel directive specifies +

The DeflateCompressionLevel directive specifies what level of compression should be used, the higher the value, the better the compression, but the more CPU time is required to achieve this.

diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index db65bd2f24..c8d8ae9b0d 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -854,7 +854,7 @@ static const command_rec deflate_filter_cmds[] = { "Set the Deflate Buffer Size"), AP_INIT_TAKE1("DeflateMemLevel", deflate_set_memlevel, NULL, RSRC_CONF, "Set the Deflate Memory Level (1-9)"), - AP_INIT_TAKE1("CompressionLevel", deflate_set_compressionlevel, NULL, RSRC_CONF, + AP_INIT_TAKE1("DeflateCompressionLevel", deflate_set_compressionlevel, NULL, RSRC_CONF, "Set the Deflate Compression Level (1-9)"), {NULL} };