summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2021-02-04 18:40:45 +0300
committerAndrei Belov <defan@nginx.com>2021-02-04 18:40:45 +0300
commit0997fa324ca523ab282f595ac9f44b3e4daff86a (patch)
tree37424fff265780f34f9a9adb7ddd7501a67843f1 /docs
parent2bc99c614d5547e773bda73364efada47f0a37bf (diff)
parent774a6034d9daf32ac6c98da7e4c0ca9e820536b4 (diff)
downloadunit-0997fa324ca523ab282f595ac9f44b3e4daff86a.tar.gz
unit-0997fa324ca523ab282f595ac9f44b3e4daff86a.tar.bz2
Merged with the default branch.
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile9
-rw-r--r--docs/changes.xml110
-rw-r--r--docs/changes.xsls47
-rw-r--r--docs/changes.xslt47
4 files changed, 193 insertions, 20 deletions
diff --git a/docs/Makefile b/docs/Makefile
index aa8aeb9b..db63eec4 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -14,6 +14,9 @@ PACKAGES= unit \
unit-ruby \
unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11
+CURDATE:=$(shell date +"%Y-%m-%d")
+CURTIME:=$(shell date +"%H:%M:%S %z")
+
all: changes changelogs
@@ -31,6 +34,8 @@ $(DEST)/CHANGES: changes.dtd \
xmllint --noout --valid changes.xml
xsltproc --stringparam format generic \
+ --stringparam curdate '$(CURDATE)' \
+ --stringparam curtime '$(CURTIME)' \
-o $@ changes.xslt changes.xml
$(DEST)/%.rpm-changelog: changes.dtd \
@@ -40,6 +45,8 @@ $(DEST)/%.rpm-changelog: changes.dtd \
mkdir -p $(DEST)
xmllint --noout --valid changes.xml
xsltproc --stringparam pkgname $* --stringparam format rpm \
+ --stringparam curdate '$(CURDATE)' \
+ --stringparam curtime '$(CURTIME)' \
-o $@ changes.xslt changes.xml
$(DEST)/%.deb-changelog: changes.dtd \
@@ -49,6 +56,8 @@ $(DEST)/%.deb-changelog: changes.dtd \
mkdir -p $(DEST)
xmllint --noout --valid changes.xml
xsltproc --stringparam pkgname $* --stringparam format deb \
+ --stringparam curdate '$(CURDATE)' \
+ --stringparam curtime '$(CURTIME)' \
-o $@ changes.xslt changes.xml
changes.xslt: changes.xsls
diff --git a/docs/changes.xml b/docs/changes.xml
index 83bb4a56..70934d69 100644
--- a/docs/changes.xml
+++ b/docs/changes.xml
@@ -5,6 +5,116 @@
<change_log title="unit">
+<changes apply="unit-php
+ unit-python unit-python2.7
+ unit-python3.4 unit-python3.5 unit-python3.6 unit-python3.7
+ unit-python3.8
+ unit-go
+ unit-perl
+ unit-ruby
+ unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11 unit-jsc13
+ unit-jsc14 unit-jsc15"
+ ver="1.22.0" rev="1"
+ date="2021-02-04" time="18:00:00 +0300"
+ packager="Andrei Belov &lt;defan@nginx.com&gt;">
+
+<change>
+<para>
+NGINX Unit updated to 1.22.0.
+</para>
+</change>
+
+</changes>
+
+
+<changes apply="unit" ver="1.22.0" rev="1"
+ date="2021-02-04" time="18:00:00 +0300"
+ packager="Andrei Belov &lt;defan@nginx.com&gt;">
+
+<change type="feature">
+<para>
+the ServerRequest and ServerResponse objects of Node.js module are now
+compliant with Stream API.
+</para>
+</change>
+
+<change type="feature">
+<para>
+support for specifying multiple directories in the "path" option of Python
+apps.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+a memory leak occurred in the router process when serving files larger than
+128K; the bug had appeared in 1.13.0.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+apps could stop processing new requests under high load; the bug had
+appeared in 1.19.0.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+app processes could terminate unexpectedly under high load; the bug had
+appeared in 1.19.0.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+invalid HTTP responses were generated for some unusual status codes.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+the PHP_AUTH_USER, PHP_AUTH_PW, and PHP_AUTH_DIGEST server variables were
+missing in the PHP module.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+the router process could crash with multithreaded apps under high load.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+Ruby apps with multithreading configured could crash on start under load.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+mount points weren't unmounted when the "mount" namespace isolation was used;
+the bug had appeared in 1.21.0.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+the router process could crash while removing or reconfiguring an app that used
+WebSocket.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
+a memory leak occurring in the router process when removing or reconfiguring
+an application; the bug had appeared in 1.19.0.
+</para>
+</change>
+
+</changes>
+
+
<changes apply="unit-jsc15" ver="1.21.0" rev="1"
date="2020-11-19" time="18:00:00 +0300"
packager="Andrei Belov &lt;defan@nginx.com&gt;">
diff --git a/docs/changes.xsls b/docs/changes.xsls
index 2f3bcc46..9ff6a7e2 100644
--- a/docs/changes.xsls
+++ b/docs/changes.xsls
@@ -5,6 +5,8 @@ X:output method="text";
X:param format="'generic'";
X:param pkgname="'unit'";
X:param configuration="'change_log_conf.xml'";
+X:param curdate;
+X:param curtime;
X:var conf = "document($configuration)/configuration";
@@ -58,8 +60,10 @@ X:template = "change_log" { !! "changes"; }
X:template = "changes" {
- X:var pday = { !padded_day(date="@date") }
- X:var dow = { !day_of_week(date="@date") }
+ X:var date_ = { !getdate(date="@date", curdate="$curdate") }
+ X:var time_ = { !gettime(time="@time", curtime="$curtime") }
+ X:var pday = { !padded_day(date="$date_") }
+ X:var dow = { !day_of_week(date="$date_") }
X:var apply = { !string_in_list(list="@apply", string="$pkgname") }
X:var pkgname_ = { !beautify(pkgname="$pkgname") }
@@ -77,17 +81,16 @@ X:template = "changes" {
' '),
1, $conf/changes/length)}
- !{substring(@date, 9, 2)}
- !{$conf/changes/month[number(substring(current()/@date,
- 6, 2))]}
- !{substring(@date, 1, 4)}
+ !{substring($date_, 9, 2)}
+ !{$conf/changes/month[number(substring($date_, 6, 2))]}
+ !{substring($date_, 1, 4)}
}
X:if "$format='rpm'" {
!{concat('* ', $conf/changes/day[number($dow)],
- $conf/changes/month[number(substring(current()/@date, 6, 2))],
+ $conf/changes/month[number(substring($date_, 6, 2))],
$pday, ' ',
- substring(@date, 1, 4), ' ', @packager, ' - ',
+ substring($date_, 1, 4), ' ', @packager, ' - ',
@ver, '-', @rev, '%{?dist}.ngx')}
}
@@ -108,8 +111,8 @@ X:template = "changes" {
!{concat(' -- ', @packager, ' ',
$conf/changes/day[number($dow)], ', ',
$pday,
- $conf/changes/month[number(substring(current()/@date, 6, 2))],
- substring(@date, 1, 4), ' ', @time)}
+ $conf/changes/month[number(substring($date_, 6, 2))],
+ substring($date_, 1, 4), ' ', $time_)}
X:text {&#10;}
X:text {&#10;}
@@ -254,6 +257,30 @@ X:template beautify(pkgname) {
}
+X:template getdate(date, curdate) {
+ X:choose {
+ X:when "$date=''" {
+ !{$curdate}
+ }
+ X:otherwise {
+ !{$date}
+ }
+ }
+}
+
+
+X:template gettime(time, curtime) {
+ X:choose {
+ X:when "$time=''" {
+ !{$curtime}
+ }
+ X:otherwise {
+ !{$time}
+ }
+ }
+}
+
+
X:template = "at" {@}
X:template = "br" { !{$br} }
X:template = "nobr" { !{translate(., ' ', '&#xA0;')} }
diff --git a/docs/changes.xslt b/docs/changes.xslt
index 032d5c37..08f2f800 100644
--- a/docs/changes.xslt
+++ b/docs/changes.xslt
@@ -6,6 +6,8 @@
<xsl:param select="'generic'" name="format"/>
<xsl:param select="'unit'" name="pkgname"/>
<xsl:param select="'change_log_conf.xml'" name="configuration"/>
+<xsl:param name="curdate"/>
+<xsl:param name="curtime"/>
<xsl:variable select="document($configuration)/configuration" name="conf"/>
@@ -59,8 +61,10 @@
<xsl:template match="changes">
- <xsl:variable name="pday"> <xsl:call-template name="padded_day"><xsl:with-param select="@date" name="date"/></xsl:call-template></xsl:variable>
- <xsl:variable name="dow"> <xsl:call-template name="day_of_week"><xsl:with-param select="@date" name="date"/></xsl:call-template></xsl:variable>
+ <xsl:variable name="date_"> <xsl:call-template name="getdate"><xsl:with-param select="@date" name="date"/><xsl:with-param select="$curdate" name="curdate"/></xsl:call-template></xsl:variable>
+ <xsl:variable name="time_"> <xsl:call-template name="gettime"><xsl:with-param select="@time" name="time"/><xsl:with-param select="$curtime" name="curtime"/></xsl:call-template></xsl:variable>
+ <xsl:variable name="pday"> <xsl:call-template name="padded_day"><xsl:with-param select="$date_" name="date"/></xsl:call-template></xsl:variable>
+ <xsl:variable name="dow"> <xsl:call-template name="day_of_week"><xsl:with-param select="$date_" name="date"/></xsl:call-template></xsl:variable>
<xsl:variable name="apply"> <xsl:call-template name="string_in_list"><xsl:with-param select="@apply" name="list"/><xsl:with-param select="$pkgname" name="string"/></xsl:call-template></xsl:variable>
<xsl:variable name="pkgname_"> <xsl:call-template name="beautify"><xsl:with-param select="$pkgname" name="pkgname"/></xsl:call-template></xsl:variable>
@@ -78,17 +82,16 @@
' '),
1, $conf/changes/length)"/>
- <xsl:value-of select="substring(@date, 9, 2)"/>
- <xsl:value-of select="$conf/changes/month[number(substring(current()/@date,
- 6, 2))]"/>
- <xsl:value-of select="substring(@date, 1, 4)"/>
+ <xsl:value-of select="substring($date_, 9, 2)"/>
+ <xsl:value-of select="$conf/changes/month[number(substring($date_, 6, 2))]"/>
+ <xsl:value-of select="substring($date_, 1, 4)"/>
</xsl:if>
<xsl:if test="$format='rpm'">
<xsl:value-of select="concat('* ', $conf/changes/day[number($dow)],
- $conf/changes/month[number(substring(current()/@date, 6, 2))],
+ $conf/changes/month[number(substring($date_, 6, 2))],
$pday, ' ',
- substring(@date, 1, 4), ' ', @packager, ' - ',
+ substring($date_, 1, 4), ' ', @packager, ' - ',
@ver, '-', @rev, '%{?dist}.ngx')"/>
</xsl:if>
@@ -109,8 +112,8 @@
<xsl:value-of select="concat(' -- ', @packager, ' ',
$conf/changes/day[number($dow)], ', ',
$pday,
- $conf/changes/month[number(substring(current()/@date, 6, 2))],
- substring(@date, 1, 4), ' ', @time)"/>
+ $conf/changes/month[number(substring($date_, 6, 2))],
+ substring($date_, 1, 4), ' ', $time_)"/>
<xsl:text>&#10;</xsl:text>
<xsl:text>&#10;</xsl:text>
@@ -246,6 +249,30 @@
</xsl:template>
+<xsl:template name="getdate"><xsl:param name="date"/><xsl:param name="curdate"/>
+ <xsl:choose>
+ <xsl:when test="$date=''">
+ <xsl:value-of select="$curdate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$date"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
+<xsl:template name="gettime"><xsl:param name="time"/><xsl:param name="curtime"/>
+ <xsl:choose>
+ <xsl:when test="$time=''">
+ <xsl:value-of select="$curtime"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
<xsl:template match="at">@</xsl:template>
<xsl:template match="br"> <xsl:value-of select="$br"/> </xsl:template>
<xsl:template match="nobr"> <xsl:value-of select="translate(., ' ', '&#xA0;')"/> </xsl:template>