Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Daemon/service is now self-contained, using libmicrohttpd
Cables communication now uses libmicrohttpd instead of depending on complex nginx/spawn-fcgi/fcgiwrap integration. Files are served directly from certificate and <msgid> directories, and [service] requests are also fulfilled directly by the daemon (no process spawning). Service requests handler has been rewritten to recover from all possible error conditions; the handler is now also thread-safe. The API has not changed -- however, it is now stricter: extra '/' delimiters are not allowed anymore. Request API does not hide errors anymore. Listen address is configured in /etc/profile using CABLE_{HOST,PORT} variables. Cables username is read once upon startup; the daemon must be restarted if username changes. No mallocs are performed by the code during operation, although libmicrohttpd and standard library do memory allocation for their purposes. Makefile now tracks dependencies, and is more friendly towards environment CFLAGS, which is appended (instead of prepended) to the switches in makefile. Feature defines are now only set in the makefile -- including _FILE_OFFSET_BITS=64, which must conform to libmicrohttpd's compile-time setting. Valgrind is used in the testing script to track potential memory and file descriptor leaks. Testing is now nearly identical to actual deployment, since nginx shortcut is not necessary anymore. Mockup script for curl only replaces hostnames with localhost references.
- Loading branch information
Maxim Kammerer
committed
Jun 4, 2012
1 parent
f72f931
commit 1fdd170
Showing
17 changed files
with
903 additions
and
800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.