<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/libweb, branch v0.4.1</title>
<subtitle>Small and lightweight web framework written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/libweb/atom?h=v0.4.1</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/libweb/atom?h=v0.4.1'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/'/>
<updated>2024-08-28T01:52:59+00:00</updated>
<entry>
<title>server.c: Fix wrong for loop range</title>
<updated>2024-08-28T01:52:59+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-28T01:27:28+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=872bfc2f8faf2000703f26ebb88a68ab0f356a7d'/>
<id>urn:sha1:872bfc2f8faf2000703f26ebb88a68ab0f356a7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server.c: Multiplex client events</title>
<updated>2024-08-25T13:10:11+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-25T12:46:06+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=1eaab0bd503d4ca6d1b62082a0117447171d1bc8'/>
<id>urn:sha1:1eaab0bd503d4ca6d1b62082a0117447171d1bc8</id>
<content type='text'>
Future commits would allow user-defined callbacks to write zero, one or
more bytes to a file descriptor. If zero bytes were written, server_poll
must avoid to always point to the same server_client, so that other
requests from other server_client instances can still be handled.
</content>
</entry>
<entry>
<title>server.c: Fix descriptor leak on failed fcntl(2)</title>
<updated>2024-08-25T12:32:27+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-25T12:32:27+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=199d801c835e95b54908b1a34963f65ba6ceee30'/>
<id>urn:sha1:199d801c835e95b54908b1a34963f65ba6ceee30</id>
<content type='text'>
</content>
</entry>
<entry>
<title>handler.c: Do not printf when exiting</title>
<updated>2024-08-25T12:31:21+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-25T12:31:21+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=43a39a1f2e5e6c7c520f03293fc57aa76fea8aaf'/>
<id>urn:sha1:43a39a1f2e5e6c7c520f03293fc57aa76fea8aaf</id>
<content type='text'>
libweb is meant to be silent during normal operation, thus only printing
to stderr on errors.
</content>
</entry>
<entry>
<title>Bump version to 0.4.0</title>
<updated>2024-08-22T00:27:35+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-22T00:04:29+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=93571556ee97e1a3e1829f8bc708d1d63f188840'/>
<id>urn:sha1:93571556ee97e1a3e1829f8bc708d1d63f188840</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move signal handling to processes</title>
<updated>2024-08-22T00:27:34+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-19T22:07:05+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=43e89fb23943b5ffb6854f290592c29cd079bf46'/>
<id>urn:sha1:43e89fb23943b5ffb6854f290592c29cd079bf46</id>
<content type='text'>
So far, libweb installed a signal handler so as to handle SIGTERM,
SIGPIPE and SIGINT signals so that processes would not have to care
about such details.

However, it is not advisable for libraries to install signal handlers,
as signals are handled on a per-process basis. The previous approach
would be incompatible if several instances of the library were allocated
by the same process.

Unfortunately, this has the undesired side effect of adding the
boilerplate code into the process.
</content>
</entry>
<entry>
<title>http.c: Fix ending boundaries not followed by CRLF</title>
<updated>2024-08-22T00:27:34+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-21T23:56:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=34b62bd0c47c915a12ff1b81f52b123fc3eb4a69'/>
<id>urn:sha1:34b62bd0c47c915a12ff1b81f52b123fc3eb4a69</id>
<content type='text'>
According to RFC 2046, section 5.1.1, end boundaries might not be
followed by CRLF. However, so far libweb naively relied on this
behaviour as major implementations, such as cURL, Chromium or Gecko
always add the optional CRLF, whereas Dillo does not.
</content>
</entry>
<entry>
<title>http.c: Accept double quotes on boundaries</title>
<updated>2024-08-22T00:27:34+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-21T21:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=3a25e79f269aa171f4e5646d52eb2f90d275cb3c'/>
<id>urn:sha1:3a25e79f269aa171f4e5646d52eb2f90d275cb3c</id>
<content type='text'>
"multipart/form-data"-encoded POST requests might use double quotes for
their boundaries. While this is required when invalid characters are
otherwise used (e.g.: ':'), some web clients always insert double
quotes.

Additionally, according to RFC 2046 section 5.1.1, the boundary
parameter consists of 1 to 70 characters, but libweb was not imposing
such restrictions.
</content>
</entry>
<entry>
<title>http.c: Remove unneeded parameter</title>
<updated>2024-08-22T00:27:34+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-21T21:55:21+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=700ae79d57b1d78551d984ce2dc886a310cc6be8'/>
<id>urn:sha1:700ae79d57b1d78551d984ce2dc886a310cc6be8</id>
<content type='text'>
This parameter was rendered obsolete after the following commit:

commit b0accd099fa8c5110d4c3c68830ad6fd810ca3ec
Author: Xavier Del Campo Romero &lt;xavi.dcr@tutanota.com&gt;
Date:   Fri Nov 24 00:52:50 2023 +0100

    http.c: Unify read operations
</content>
</entry>
<entry>
<title>http.c: Remove unused variable</title>
<updated>2024-08-22T00:27:34+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-21T21:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=915be88ddcebac61dc06cc47668961b602e01b38'/>
<id>urn:sha1:915be88ddcebac61dc06cc47668961b602e01b38</id>
<content type='text'>
</content>
</entry>
</feed>
