Commit 13d89850 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 1902-1905 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1902 | des | 2007-08-20 21:13:37 +0200 (Mon, 20 Aug 2007) | 2 lines
  
  Render <code> elements.
........
  r1903 | des | 2007-08-20 21:16:08 +0200 (Mon, 20 Aug 2007) | 2 lines
  
  Really render <code> elements correctly.
........
  r1904 | des | 2007-08-20 21:17:49 +0200 (Mon, 20 Aug 2007) | 4 lines
  
  At some point along the line, I forgot that these files aren't actually
  DocBook, and that I don't have <filename>, <literal>, <varname> etc. -
  just <code>.
........
  r1905 | des | 2007-08-20 21:20:25 +0200 (Mon, 20 Aug 2007) | 2 lines
  
  Rewrap (no content changes)
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1906 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e3ae4724
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
</change> </change>
<change type="enh" ref="1389"> <change type="enh" ref="1389">
<para>Equality (<literal>==</literal>) and inequality <para>Equality (<code>==</code>) and inequality
(<literal>!=</literal>) operators have been implemented for IP (<code>!=</code>) operators have been implemented for IP
addresses (which previously could only be compared using addresses (which previously could only be compared using
ACLs).</para> ACLs).</para>
</change> </change>
...@@ -22,16 +22,16 @@ ...@@ -22,16 +22,16 @@
<change type="enh" ref="1390"> <change type="enh" ref="1390">
<para>The address of the listening socket on which the client <para>The address of the listening socket on which the client
connection was received is now available to VCL as the connection was received is now available to VCL as the
<varname>server.ip</varname> variable.</para> <code>server.ip</code> variable.</para>
</change> </change>
<change type="enh" ref="1395,1397,1398"> <change type="enh" ref="1395,1397,1398">
<para>Each object's hash key is now computed based on a string <para>Each object's hash key is now computed based on a string
which is available to VCL as <varname>req.hash</varname>. A VCL which is available to VCL as <code>req.hash</code>. A VCL hook
hook named <varname>vcl_hash</varname> has been added to allow named <code>vcl_hash</code> has been added to allow VCL scripts
VCL scripts to control hash generation (for instance, whether or to control hash generation (for instance, whether or not to
not to include the value of the <literal>Host:</literal> header include the value of the <code>Host:</code> header in the
in the hash).</para> hash).</para>
</change> </change>
<change type="bug" ref="1423,1559"> <change type="bug" ref="1423,1559">
...@@ -53,21 +53,20 @@ ...@@ -53,21 +53,20 @@
<change type="enh" ref="1482"> <change type="enh" ref="1482">
<para>The child process will now drop root privileges <para>The child process will now drop root privileges
immediately upon startup. The user and group to use are immediately upon startup. The user and group to use are
specified with the <varname>user</varname> and specified with the <code>user</code> and <code>group</code>
<varname>group</varname> run-time parameters, which default to run-time parameters, which default to <code>nobody</code> and
<literal>nobody</literal> and <literal>nogroup</literal>, <code>nogroup</code>, respectively. Other changes have been
respectively. Other changes have been made in an effort to made in an effort to increase the isolation between parent and
increase the isolation between parent and child, and reduce the child, and reduce the impact of a compromise of the child
impact of a compromise of the child process.</para> process.</para>
</change> </change>
<change type="enh" ref="1506"> <change type="enh" ref="1506">
<para>Objects which are received from the backend with a <para>Objects which are received from the backend with a
<literal>Vary:</literal> header are now stored separately <code>Vary:</code> header are now stored separately according to
according to the values of the headers specified in the values of the headers specified in <code>Vary:</code>. This
<literal>Vary:</literal>. This allows Varnish to correctly allows Varnish to correctly cache e.g. compressed and
cache e.g. compressed and uncompressed versions of the same uncompressed versions of the same object.</para>
object.</para>
</change> </change>
<change type="enh" ref="1521,1524,1525,1526,1528,1532,1533,1572,1573,1581"> <change type="enh" ref="1521,1524,1525,1526,1528,1532,1533,1572,1573,1581">
...@@ -81,9 +80,9 @@ ...@@ -81,9 +80,9 @@
</change> </change>
<change type="enh" ref="1549"> <change type="enh" ref="1549">
<para>When invoked with the <option>-C</option> option, <para>When invoked with the <code>-C</code> option,
<command>varnishd</command> will now not just translate the VCL <code>varnishd</code> will now not just translate the VCL code
code to C, but also compile the C code and attempt to load the to C, but also compile the C code and attempt to load the
resulting shared object.</para> resulting shared object.</para>
</change> </change>
...@@ -94,26 +93,25 @@ ...@@ -94,26 +93,25 @@
</change> </change>
<change type="enh" ref="1557,1558"> <change type="enh" ref="1557,1558">
<para>The new command-line option <option>-F</option> will make <para>The new command-line option <code>-F</code> will make
<command>varnishd</command> run in the foreground, without <code>varnishd</code> run in the foreground, without enabling
enabling debugging.</para> debugging.</para>
</change> </change>
<change type="enh" ref="1560"> <change type="enh" ref="1560">
<para>New VCL variables have been introduced to allow inspection <para>New VCL variables have been introduced to allow inspection
and manipulation of the request sent to the backend and manipulation of the request sent to the backend
(<varname>bereq.request</varname>, <varname>bereq.url</varname>, (<code>bereq.request</code>, <code>bereq.url</code>,
<varname>bereq.proto</varname> and <code>bereq.proto</code> and <code>bereq.http</code>) and the
<varname>bereq.http</varname>) and the response to the client response to the client (<code>resp.proto</code>,
(<varname>resp.proto</varname>, <varname>resp.status</varname>, <code>resp.status</code>, <code>resp.response</code> and
<varname>resp.response</varname> and <code>resp.http</code>).</para>
<varname>resp.http</varname>).</para>
</change> </change>
<change type="enh" ref="1564,1565"> <change type="enh" ref="1564,1565">
<para>Statistics from the storage code (including the amount of <para>Statistics from the storage code (including the amount of
data and free space in the cache) are now available to data and free space in the cache) are now available to
<command>varnishstat</command> and other statistics-gathering <code>varnishstat</code> and other statistics-gathering
tools.</para> tools.</para>
</change> </change>
...@@ -122,44 +120,44 @@ ...@@ -122,44 +120,44 @@
up-to-date (to within a few seconds). When cache runs out, the up-to-date (to within a few seconds). When cache runs out, the
objects at the tail end of the LRU list are discarded one by one objects at the tail end of the LRU list are discarded one by one
until there is enough space for the freshly requested object(s). until there is enough space for the freshly requested object(s).
A VCL hook, <function>vcl_discard</function>, is allowed to A VCL hook, <code>vcl_discard</code>, is allowed to inspect each
inspect each object and determine its fate by returning either object and determine its fate by returning either
<command>keep</command> or <command>discard</command>.</para> <code>keep</code> or <code>discard</code>.</para>
</change> </change>
<change type="enh" ref="1612,1640"> <change type="enh" ref="1612,1640">
<para>A new VCL hook, <function>vcl_deliver</function>, provides <para>A new VCL hook, <code>vcl_deliver</code>, provides a
a chance to adjust the response before it is sent to the chance to adjust the response before it is sent to the
client.</para> client.</para>
</change> </change>
<change type="enh" ref="1626"> <change type="enh" ref="1626">
<para>A new management command, <command>vcl.show</command>, <para>A new management command, <code>vcl.show</code>, displays
displays the VCL source code of any loaded configuration.</para> the VCL source code of any loaded configuration.</para>
</change> </change>
<change type="enh" ref="1628"> <change type="enh" ref="1628">
<para>A new VCL variable, <varname>now</varname>, provides VCL <para>A new VCL variable, <code>now</code>, provides VCL scripts
scripts with the current time in seconds since the epoch.</para> with the current time in seconds since the epoch.</para>
</change> </change>
<change type="enh" ref="1628,1629,1630"> <change type="enh" ref="1628,1629,1630">
<para>A new VCL variable, <varname>obj.lastuse</varname>, <para>A new VCL variable, <code>obj.lastuse</code>, reflects the
reflects the time in seconds since the object in question was time in seconds since the object in question was last
last used.</para> used.</para>
</change> </change>
<change type="enh" ref="1645,1646,1648"> <change type="enh" ref="1645,1646,1648">
<para>VCL scripts can now add an HTTP header (or modify the <para>VCL scripts can now add an HTTP header (or modify the
value of an existing one) by assigning a value to the value of an existing one) by assigning a value to the
corresponding variable, and strip an HTTP header by using the corresponding variable, and strip an HTTP header by using the
<command>remove</command> keyword.</para> <code>remove</code> keyword.</para>
</change> </change>
<change type="enh" ref="1661,1662"> <change type="enh" ref="1661,1662">
<para>VCL scripts can now modify the HTTP status code of cached <para>VCL scripts can now modify the HTTP status code of cached
objects (<varname>obj.status</varname>) and responses objects (<code>obj.status</code>) and responses
(<varname>resp.status</varname>)</para> (<code>resp.status</code>)</para>
</change> </change>
<change type="enh" ref="1663"> <change type="enh" ref="1663">
...@@ -170,13 +168,13 @@ ...@@ -170,13 +168,13 @@
<change type="enh" ref="1666,1667"> <change type="enh" ref="1666,1667">
<para>VCL scripts can now apply regular expression substitutions <para>VCL scripts can now apply regular expression substitutions
to textual variables using the <function>regsub</function> to textual variables using the <code>regsub</code>
function.</para> function.</para>
</change> </change>
<change type="enh" ref="1674,1675"> <change type="enh" ref="1674,1675">
<para>A new management command, <command>status</command>, <para>A new management command, <code>status</code>, returns the
returns the state of the child.</para> state of the child.</para>
</change> </change>
<change type="enh" ref="1719-1721"> <change type="enh" ref="1719-1721">
...@@ -190,7 +188,7 @@ ...@@ -190,7 +188,7 @@
<change type="enh" ref="1502"> <change type="enh" ref="1502">
<para>This is a new utility which sends a single command to a <para>This is a new utility which sends a single command to a
Varnish server's management port and prints the result to Varnish server's management port and prints the result to
<varname>stdout</varname>, greatly simplifying the use of the <code>stdout</code>, greatly simplifying the use of the
management port from scripts.</para> management port from scripts.</para>
</change> </change>
</subsystem> </subsystem>
...@@ -212,13 +210,12 @@ ...@@ -212,13 +210,12 @@
<name>varnishncsa</name> <name>varnishncsa</name>
<change type="enh" ref="1479"> <change type="enh" ref="1479">
<para>In addition to client traffic, <para>In addition to client traffic, <code>varnishncsa</code>
<command>varnishncsa</command> can now also process log data can now also process log data from backend traffic.</para>
from backend traffic.</para>
</change> </change>
<change type="bug" ref="1531"> <change type="bug" ref="1531">
<para>A bug that would cause <command>varnishncsa</command> to <para>A bug that would cause <code>varnishncsa</code> to
segfault when it encountered an empty HTTP header in the log segfault when it encountered an empty HTTP header in the log
file has been fixed.</para> file has been fixed.</para>
</change> </change>
...@@ -241,17 +238,17 @@ ...@@ -241,17 +238,17 @@
<para>Don't print lifetime averages when it doesn't make any <para>Don't print lifetime averages when it doesn't make any
sense&mdash;for instance, there is no point in dividing the sense&mdash;for instance, there is no point in dividing the
amount in bytes of free cache space by the lifetime in seconds amount in bytes of free cache space by the lifetime in seconds
of the <command>varnishd</command> process.</para> of the <code>varnishd</code> process.</para>
</change> </change>
<change type="enh" ref="1589,1590,1591"> <change type="enh" ref="1589,1590,1591">
<para>The user interface has been greatly improved; <para>The user interface has been greatly improved;
<command>varnishstat</command> will no longer print more than <code>varnishstat</code> will no longer print more than fits in
fits in the terminal, and will respond correctly to window the terminal, and will respond correctly to window resize
resize events. The output produced in one-shot mode has been events. The output produced in one-shot mode has been modified
modified to include symbolic names for each entry. In addition, to include symbolic names for each entry. In addition, the name
the name of the Varnish instance being watched is displayed in of the Varnish instance being watched is displayed in the upper
the upper right corner in curses mode.</para> right corner in curses mode.</para>
</change> </change>
</subsystem> </subsystem>
...@@ -260,10 +257,10 @@ ...@@ -260,10 +257,10 @@
<change type="enh" ref="1592,1596"> <change type="enh" ref="1592,1596">
<para>The user interface has been greatly improved; <para>The user interface has been greatly improved;
<command>varnishtop</command> will now respond correctly to <code>varnishtop</code> will now respond correctly to window
window resize events, and one-shot mode (<option>-1</option>) resize events, and one-shot mode (<code>-1</code>) actually
actually works. In addition, the name of the Varnish instance works. In addition, the name of the Varnish instance being
being watched is displayed in the upper right corner in curses watched is displayed in the upper right corner in curses
mode.</para> mode.</para>
</change> </change>
</subsystem> </subsystem>
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
<change type="bug" ref="1745"> <change type="bug" ref="1745">
<para>The code required to allow VCL to read <para>The code required to allow VCL to read
<varname>obj.status</varname>, which had accidentally been left <code>obj.status</code>, which had accidentally been left out,
out, has now been added.</para> has now been added.</para>
</change> </change>
<change type="bug" ref="1750"> <change type="bug" ref="1750">
<para>Varnish will now always include a <para>Varnish will now always include a <code>Connection:</code>
<literal>Connection:</literal> header in its reply to the header in its reply to the client, to avoid possible
client, to avoid possible misunderstandings.</para> misunderstandings.</para>
</change> </change>
<change type="buf" ref="1751"> <change type="buf" ref="1751">
...@@ -25,18 +25,18 @@ ...@@ -25,18 +25,18 @@
</change> </change>
<change type="enh" ref="1761,1762,1765,1828"> <change type="enh" ref="1761,1762,1765,1828">
<para>A new VCL function, <function>purge_url</function>, <para>A new VCL function, <code>purge_url</code>, provides the
provides the same functionality as the same functionality as the <code>url.purge</code> management
<command>url.purge</command> management command.</para> command.</para>
</change> </change>
<change type="enh" ref="1780"> <change type="enh" ref="1780">
<para>Previously, Varnish assumed that the response body should <para>Previously, Varnish assumed that the response body should
be sent only if the request method was <literal>GET</literal>. be sent only if the request method was <code>GET</code>. This
This was a problem for custom request methods (such as was a problem for custom request methods (such as
<literal>PURGE</literal>), so the logic has been changed to <code>PURGE</code>), so the logic has been changed to always
always send the response body except in the specific case of a send the response body except in the specific case of a
<literal>HEAD</literal> request.</para> <code>HEAD</code> request.</para>
</change> </change>
<change type="bug" ref="1795"> <change type="bug" ref="1795">
...@@ -46,11 +46,10 @@ ...@@ -46,11 +46,10 @@
<change type="bug" ref="1797"> <change type="bug" ref="1797">
<para>Due to the way run-time parameters are initialized at <para>Due to the way run-time parameters are initialized at
startup, <command>varnishd</command> previously required the startup, <code>varnishd</code> previously required the
<literal>nobody</literal> user and the <code>nobody</code> user and the <code>nogroup</code> group to
<literal>nogroup</literal> group to exist even if a different exist even if a different user and group were specified on the
user and group were specified on the command line. This has command line. This has been corrected.</para>
been corrected.</para>
</change> </change>
<change type="bug" ref="1800"> <change type="bug" ref="1800">
...@@ -66,18 +65,17 @@ ...@@ -66,18 +65,17 @@
</change> </change>
<change type="bug" ref="1807"> <change type="bug" ref="1807">
<para>Before calling <function>vcl_miss</function>, Varnish <para>Before calling <code>vcl_miss</code>, Varnish assembles a
assembles a tentative request object for the backend request tentative request object for the backend request which will
which will usually follow. This object would be leaked if usually follow. This object would be leaked if
<function>vcl_miss</function> returned anything else than <code>vcl_miss</code> returned anything else than
<command>fetch</command>. This has been corrected.</para> <code>fetch</code>. This has been corrected.</para>
</change> </change>
<change type="bug" ref="1808"> <change type="bug" ref="1808">
<para>The code necessary to handle an <command>error</command> <para>The code necessary to handle an <code>error</code> return
return from <function>vcl_fetch</function> and from <code>vcl_fetch</code> and <code>vcl_deliver</code> had
<function>vcl_deliver</function> had inadvertantly been left inadvertantly been left out. This has been corrected.</para>
out. This has been corrected.</para>
</change> </change>
<change type="bug" ref="1810"> <change type="bug" ref="1810">
...@@ -109,8 +107,7 @@ ...@@ -109,8 +107,7 @@
<change type="bug" ref="1752"> <change type="bug" ref="1752">
<para>The top-level Makefile will now honor <para>The top-level Makefile will now honor
<varname>$DESTDIR</varname> when creating the state <code>$DESTDIR</code> when creating the state directory.</para>
directory.</para>
</change> </change>
<change type="enh" ref="1743,1846"> <change type="enh" ref="1743,1846">
...@@ -124,16 +121,16 @@ ...@@ -124,16 +121,16 @@
</change> </change>
<change type="enh" ref="1811"> <change type="enh" ref="1811">
<para>The <filename>autogen.sh</filename> script had workarounds <para>The <code>autogen.sh</code> script had workarounds for
for problems with the GNU autotools on FreeBSD; these are no problems with the GNU autotools on FreeBSD; these are no longer
longer needed and have been removed.</para> needed and have been removed.</para>
</change> </change>
<change type="enh" ref="1817"> <change type="enh" ref="1817">
<para>The <filename>libcompat</filename> library has been <para>The <code>libcompat</code> library has been renamed to
renamed to <filename>libvarnishcompat</filename> and is now <code>libvarnishcompat</code> and is now dynamic rather than
dynamic rather than static. This simplifies the build process static. This simplifies the build process and resolves an issue
and resolves an issue with the Mac OS X linker.</para> with the Mac OS X linker.</para>
</change> </change>
</subsystem> </subsystem>
</group> </group>
...@@ -72,4 +72,21 @@ ...@@ -72,4 +72,21 @@
<xsl:value-of select="@ref"/> <xsl:value-of select="@ref"/>
</a> </a>
</xsl:template> </xsl:template>
<xsl:template match="code">
<span>
<xsl:attribute name="class">
<xsl:value-of select="name()"/>
</xsl:attribute>
<xsl:apply-templates/>
</span>
</xsl:template>
<xsl:template match="*" priority="-1">
<xsl:message>Warning: no template for element <xsl:value-of select="name(
)"/></xsl:message>
<xsl:value-of select="concat('&lt;', name(), '&gt;')"/>
<xsl:apply-templates/>
<xsl:value-of select="concat('&lt;/', name(), '&gt;')"/>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
...@@ -25,3 +25,7 @@ h3 { ...@@ -25,3 +25,7 @@ h3 {
font-weight: bold; font-weight: bold;
color: maroon; color: maroon;
} }
.code {
font-family: monospace;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment