summaryrefslogtreecommitdiffstats
path: root/src/journal/journal-remote.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move network-related journal programs to src/journal-remote/Zbigniew Jędrzejewski-Szmek2014-07-161-1283/+0
| | | | | | | Directory src/journal has become one of the largest directories, and since systemd-journal-gatewayd, systemd-journal-remote, and forthcoming systemd-journal-upload are all closely related, create a separate directory for them.
* microhttp-util: rework gnutls loggingZbigniew Jędrzejewski-Szmek2014-07-161-4/+48
|
* consistently order cleanup attribute before typeThomas Hindoe Paaboel Andersen2014-06-221-4/+4
|
* journal-remote: fix memleakThomas Hindoe Paaboel Andersen2014-06-161-3/+3
|
* tmpfiles: get rid of "m" lines, make them redundant by "z"Lennart Poettering2014-06-101-1/+1
| | | | | | | "m" so far has been a non-globbing version of "z". Since this makes it quite redundant, let's get rid of it. Remove "m" from the man pages, beef up "z" docs instead, and make "m" nothing more than a compatibility alias for "z".
* Remove unnecessary casts in printfsZbigniew Jędrzejewski-Szmek2014-05-151-2/+2
| | | | No functional change expected :)
* Remove duplicate includesBas van den Berg2014-04-211-1/+0
|
* Unify GREEDY_REALLOC and GREEDY_REALLOC_TZbigniew Jędrzejewski-Szmek2014-04-121-7/+6
| | | | | | | | | | greedy_realloc() and greedy_realloc0() now store the allocated size as the count, not bytes. Replace GREEDY_REALLOC uses with GREEDY_REALLOC_T everywhere, and then rename GREEDY_REALLOC_T to GREEDY_REALLOC. It is just too error-prone to have two slightly different macros which do the same thing.
* util: replace close_pipe() with new safe_close_pair()Lennart Poettering2014-03-241-4/+2
| | | | | | safe_close_pair() is more like safe_close(), except that it handles pairs of fds, and doesn't make and misleading allusion, as it works similarly well for socketpairs() as for pipe()s...
* remove unused variableThomas Hindoe Paaboel Andersen2014-03-171-1/+1
|
* journal-remote: implement inheriting http(s) socketsZbigniew Jędrzejewski-Szmek2014-03-171-31/+97
| | | | | | | Now --listen-http=-3 --listen-https=-4 can be used to spawn a µhttpd server on those two ports, in http and https modes respectively. As before, --listen-http=3 --listen-https=4 will launch µhttpd servers on ports 3 and 4.
* microhttpd-util: use static buffer for static messagesZbigniew Jędrzejewski-Szmek2014-03-171-13/+13
| | | | | | | | | | | Most of the messages we send do not require a allocating and freeing a buffer, to optimize this by using const strings. Also, rename respond_error to mhd_respond*, since it is used not only for errors. Make use of information from printf to avoid one extra call to strlen.
* journal-remote: HTTP(s) supportZbigniew Jędrzejewski-Szmek2014-03-171-26/+465
| | | | | | | | | | | | | | | | | 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.
* journal-remote: tool to receive messages over the networkZbigniew Jędrzejewski-Szmek2014-03-171-0/+738