<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/src, branch alx-gzip</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>HTTP: compress: gzip: calculating wbits and memlevel dynamically.</title>
<updated>2023-12-19T14:02:42+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-09-05T01:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=9479559dc08ab13adc4c60e198d5e4d9d289ee02'/>
<id>9479559dc08ab13adc4c60e198d5e4d9d289ee02</id>
<content type='text'>
When the content length is small, optimize zlib for low memory usage.
Conversely, when the content length is large, use a similar amount of
memory within zlib, as it will improve compression, and won't hurt
significantly.

Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the content length is small, optimize zlib for low memory usage.
Conversely, when the content length is large, use a similar amount of
memory within zlib, as it will improve compression, and won't hurt
significantly.

Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Libunit: added bit functions.</title>
<updated>2023-12-19T14:02:42+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-09-05T00:58:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f9761247794fce2de3726f3de9871a8ec24dcef3'/>
<id>f9761247794fce2de3726f3de9871a8ec24dcef3</id>
<content type='text'>
These are based on C23's &lt;stdbit.h&gt;.

Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are based on C23's &lt;stdbit.h&gt;.

Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTP: compress: checking $header_accept_encoding.</title>
<updated>2023-12-19T14:02:41+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-08-31T23:41:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=4d84fe7e8e9453555e6e12f3c62bcf661fbdc9b4'/>
<id>4d84fe7e8e9453555e6e12f3c62bcf661fbdc9b4</id>
<content type='text'>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTP: compress: added "mime_types" rule.</title>
<updated>2023-12-19T14:02:41+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-08-28T15:34:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=9ec5c6013be752b8e069103a2ec7c9bff5b01679'/>
<id>9ec5c6013be752b8e069103a2ec7c9bff5b01679</id>
<content type='text'>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTP: compress: added configurable threshold for Content-Length.</title>
<updated>2023-12-19T14:02:41+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-08-24T12:09:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=04e9f235ddbb3ae1343897f755c9ccf80c99f021'/>
<id>04e9f235ddbb3ae1343897f755c9ccf80c99f021</id>
<content type='text'>
With this, short responses, that is, responses with a body of up to
content_length_threshold bytes, won't be compressed.  The default value
is 20, as in NGINX.

Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this, short responses, that is, responses with a body of up to
content_length_threshold bytes, won't be compressed.  The default value
is 20, as in NGINX.

Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>String: added nxt_atoul().</title>
<updated>2023-12-19T14:01:46+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-08-23T23:12:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=22dc158a03762c22d75fca7500c32799130f21a7'/>
<id>22dc158a03762c22d75fca7500c32799130f21a7</id>
<content type='text'>
This is similar to atoi(3) in usage, except that:

-  It's safe (doesn't have Undefined Behavior).
-  It receives a nxt_str_t instead of a string.
-  The base is 0, not 10.

Errors are reported with the same error codes as in strtou(3bsd), but
they are reported via errno, instead of passing a pointer to an int.

Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is similar to atoi(3) in usage, except that:

-  It's safe (doesn't have Undefined Behavior).
-  It receives a nxt_str_t instead of a string.
-  The base is 0, not 10.

Errors are reported with the same error codes as in strtou(3bsd), but
they are reported via errno, instead of passing a pointer to an int.

Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>String: added nxt_strtoul_noneg().</title>
<updated>2023-12-19T13:08:14+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@kernel.org</email>
</author>
<published>2023-12-19T12:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=13dedafc71925d73ef83d0848271bd5e77f6b14b'/>
<id>13dedafc71925d73ef83d0848271bd5e77f6b14b</id>
<content type='text'>
This function is like strtoul(3), but it rejects negative numbers,
instead of silently converting them into unsigned, which strtoul(3)
does.

Link: &lt;https://blog.habets.se/2022/10/No-way-to-parse-integers-in-C.html&gt;
Link: &lt;https://softwareengineering.stackexchange.com/a/449060/332848&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This function is like strtoul(3), but it rejects negative numbers,
instead of silently converting them into unsigned, which strtoul(3)
does.

Link: &lt;https://blog.habets.se/2022/10/No-way-to-parse-integers-in-C.html&gt;
Link: &lt;https://softwareengineering.stackexchange.com/a/449060/332848&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Auto: zlib: added --no-zlib.</title>
<updated>2023-10-25T11:38:32+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-07-21T11:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=3630425f826c7334592c7d1f2527082cfe43f79d'/>
<id>3630425f826c7334592c7d1f2527082cfe43f79d</id>
<content type='text'>
Related to:

    HTTP: compress: gzip

Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related to:

    HTTP: compress: gzip

Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTP: compress: added configurable "level" of compression.</title>
<updated>2023-10-25T11:38:08+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-08-23T15:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0569065aa583470b8dd2689f2aae53f57b74fe46'/>
<id>0569065aa583470b8dd2689f2aae53f57b74fe46</id>
<content type='text'>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTP: compress: added "encoding": "gzip".</title>
<updated>2023-10-25T11:38:04+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@nginx.com</email>
</author>
<published>2023-07-19T12:22:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=d05e2ab887602bb3f3f3020ba14f247f1dd18bef'/>
<id>d05e2ab887602bb3f3f3020ba14f247f1dd18bef</id>
<content type='text'>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alejandro Colomar &lt;alx@nginx.com&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
