debian-forge/osbuild
Christian Kellner abbdf06ba5 jsoncomm: switch to use sequenced-packet sockets
Switch to use a connection oriented datagram based protocol, i.e.
`SOCK_SEQPACKET`, instead of `SOCK_DGRAM`. It sill preserves
message boundaries, but since it is connection oriented the client
nor the server do not need to specify the destination addresses
of the peer in sendmsg/recvmesg. Moreover, the host will be able
to send messages to the client, even if the latter is sandboxed
with a separate network namespace. In the `SOCK_DRAM` case the
auto-bound address of the client would not be visible to the host
and thus sending messages would to it would fail.

Adapt the jsoncomm tests as well as `BaseAPI`.
2020-07-29 02:16:20 +01:00
..
util jsoncomm: switch to use sequenced-packet sockets 2020-07-29 02:16:20 +01:00
__init__.py osbuild: extract CLI to prepare for additional entrypoints 2020-04-28 15:39:54 +02:00
__main__.py osbuild: use osbuild_cli directly as main entry 2020-07-17 16:30:46 +01:00
api.py jsoncomm: switch to use sequenced-packet sockets 2020-07-29 02:16:20 +01:00
buildroot.py buildroot: ensure rundir and vardir exist 2020-07-27 12:50:38 +01:00
loop.py loop: fix FD leak in mknod() 2020-04-21 13:02:29 +02:00
main_cli.py api: introduce pipeline monitoring 2020-07-21 13:25:04 +02:00
meta.py meta: also validate the schema for sources 2020-06-02 09:50:14 +02:00
monitor.py api: introduce pipeline monitoring 2020-07-21 13:25:04 +02:00
objectstore.py objectstore: use types.PathLike 2020-07-27 12:50:38 +01:00
pipeline.py osbuild: auto-generate socket addresses for APIs 2020-07-27 12:50:38 +01:00
remoteloop.py api: close file descriptor set in _dispatch 2020-07-27 12:50:38 +01:00
sources.py sources: use high level message dispatcher 2020-07-27 12:50:38 +01:00
treesum.py treesum: don't use dir_fd parameter in os.scandir() 2019-11-29 00:45:14 +01:00