Commit graph

68 commits

Author SHA1 Message Date
Lennart Poettering 8cf030b349 Revert "socket-proxyd: Add --listener option for listener/destination pairs."
This reverts commit adcf4c81c5.

We have a better solution for the problem of making two processes run in
the same namespace, and --listener is not needed hence and should be
dropped.

Conflicts:
	man/systemd-socket-proxyd.xml
2013-11-27 20:55:15 +01:00
David Strauss adcf4c81c5 socket-proxyd: Add --listener option for listener/destination pairs. 2013-11-25 10:46:48 +10:00
Lennart Poettering adcc4ca30d event: rename sd_event_get() to sd_event_source_get_event() 2013-11-22 01:42:15 +01:00
Lennart Poettering afc6adb5ec bus: introduce concept of a "default" event loop per-thread and make use of it everywhere
Try to emphasize a bit that there should be a mapping between event
loops and threads, hence introduce a logic that there's one "default"
event loop for each thread, that can be queried via
"sd_event_default()".
2013-11-12 00:12:43 +01:00
Lennart Poettering e633ea1c9c socket-proxy: actually properly keep track of connections 2013-11-07 16:53:26 +01:00
Lennart Poettering 1ec6af16f5 socket-proxyd: no need to redefine sockaddr union 2013-11-07 16:53:26 +01:00
Lennart Poettering b7484e2a58 event: make sure we keep a reference to all events we dispatch while we do so. 2013-11-07 00:13:58 +01:00
Lennart Poettering 8569a77629 socket-proxyd: rework to support multiple sockets and splice()-based zero-copy network IO
This also drops --ignore-env, which can't really work anymore if we
allow multiple fds. Also adds support for pretty printing of peer
identities for debug purposes, and abstract namespace UNIX sockets. Also
ensures that we never take more connections than a certain limit.
2013-11-06 23:03:12 +01:00
Lennart Poettering 5f7e83e8ad socket-proxy: clean-up indenting 2013-11-06 18:29:24 +01:00
Lennart Poettering eb9da376d7 clients: unify how we invoke getopt_long()
Among other things this makes sure we always expose a --version command
and show it in the help texts.
2013-11-06 18:28:39 +01:00
David Strauss a42431ca6a socket-proxyd: Actually, some of those sizes are unsigned. 2013-10-31 15:30:49 -07:00
Ronny Chevalier 0885468d80 fix compiler warnings
multiple warnings like

src/socket-proxy/socket-proxyd.c: In function ‘transfer_data_cb’:
src/socket-proxy/socket-proxyd.c:237:25: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ [-Wformat=]
                         log_debug("Buffer now has %ld bytes full.", c->buffer_filled_len);
2013-10-31 15:17:46 -07:00
David Strauss f4bd42aa3c socket-proxyd: Fix-up from previous change to avoid looping on errors. 2013-10-21 18:41:35 -07:00
David Strauss 40976028c6 socket-proxyd: Use ONESHOT to behave properly with multiple accept() processes. 2013-10-21 18:32:08 -07:00
David Strauss 6298945d5c socket-proxyd: Remove datagram research TODO. This proxy will not work with them. 2013-10-19 17:11:36 -07:00
David Strauss 20c7c931a9 socket-proxyd: Comment and log text cleanup.
* Standardize on "nonblocking" spelling, per Linux man pages.
 * Clarify that the nonblocking sockets are never in a "blocking"
   or "unblocked" state, just a "would block" or "ready" state.
2013-10-19 17:05:42 -07:00
Kay Sievers b6818c7d10 socket-proxyd: initialize variable used in error code path 2013-10-20 01:10:49 +02:00
Lennart Poettering 96c374d0a5 socket-proxyd: rename from saproxy
The thing is a daemon, hence needs a "d" prefix. Also, we tend to not
abbreviate names of background components unnecessarily, since they are
not primary commands people type. Then, the fact that this thing does
socket actviation is mostly in implementationd detail for the proxy.

Also, do some minor indenting clean-ups and other code updates.
2013-10-18 02:58:47 +02:00