chiark / gitweb /
journal-remote: HTTP(s) support
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 Mar 2014 19:58:03 +0000 (15:58 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Mar 2014 05:55:48 +0000 (01:55 -0400)
commitcc64d0175a3c2c974709e9962c00fbe04d74c43f
treeb03dc9591925761c583a8b14c101c1052f1ace0d
parentfdfccdbc985944a57017a25f44dd6acc1a937bab
journal-remote: HTTP(s) support

The whole tool is made dependent on µhttpd availability. It should be
easy to make the µhttpd parts conditional, but since transfer over
HTTP seems to be the primary use case, currently this is not done.

Current implementation uses nested epoll loops: sd-event is used for
the external event loop, and µhttpd uses epoll in its own
loop. Unfortunately µhttpd does not expose enough information to add
the descriptors it uses to the external event loop. This means that
starvation of other events is possible, if one of the inner µhttpd
loops is constantly busy. This means that µhttpd servers should not
be mixed with other sources.

The TLS authentication parts haven't been really tested properly, and
should not be take too seriously.
Makefile-man.am
Makefile.am
man/systemd-journal-remote.xml
src/journal/journal-remote-parse.c
src/journal/journal-remote-parse.h
src/journal/journal-remote.c
src/journal/microhttpd-util.c