Michael Vogt
1af2d1c3e1
shared: extend socket-forward to support fd-pairs too
...
Now that the socket forward code is extracted we can
extend it to not just support bidirectional sockets
but also input/output fd-pairs. This will be needed
for e.g. the varlinkctl protocol upgrade support where
one side of the connection is a fd-pair (stdin/stdout).
This is done by creating two half-duplex forwarders
that operate independantly. This also allows to simplify
some state tracking, e.g. because each fd serves only one
direction we don't need to dynamically create the event mask
with EPOLLIN etc, its enough to set it once. It also handles
non-pollable FDs transparently.
Thanks to Lennart for his excellent suggestions here.
2026-03-31 18:25:09 +02:00
..
2026-03-26 10:31:23 +01:00
2026-03-26 18:13:17 +01:00
2026-03-26 10:31:23 +01:00
2026-03-18 10:28:47 +00:00
2026-03-31 14:42:02 +02:00
2026-03-26 10:31:23 +01:00
2026-03-26 10:31:23 +01:00
2026-03-30 10:55:33 +01:00
2026-03-29 20:32:15 +02:00
2026-03-26 18:13:17 +01:00
2026-03-26 18:13:17 +01:00
2026-03-31 14:42:02 +02:00
2026-03-26 18:13:17 +01:00
2026-03-26 16:01:35 +01:00
2026-03-12 16:02:28 +00:00
2026-03-26 18:13:17 +01:00
2026-03-28 19:56:31 +00:00
2026-03-26 23:39:28 +01:00
2026-03-26 10:31:23 +01:00
2026-03-26 23:39:28 +01:00
2026-03-20 12:39:44 +01:00
2026-03-30 09:37:32 +01:00
2026-03-26 16:11:34 +01:00
2026-03-31 10:17:26 +02:00
2026-03-11 03:23:53 +09:00
2026-03-26 16:11:34 +01:00
2026-03-25 02:03:56 +01:00
2026-03-26 16:11:34 +01:00
2026-03-29 20:32:15 +02:00
2026-03-31 10:17:26 +02:00
2026-03-18 10:28:47 +00:00
2026-03-26 23:39:28 +01:00
2026-03-28 19:56:30 +00:00
2026-03-30 13:34:58 +02:00
2026-03-22 20:02:13 +01:00
2026-03-20 17:12:29 +01:00
2026-03-30 23:34:44 +02:00
2026-03-26 18:13:17 +01:00
2026-03-26 14:28:22 +01:00
2026-03-18 10:28:47 +00:00
2026-03-31 18:25:09 +02:00
2026-03-27 11:23:40 +01:00
2026-03-26 18:13:17 +01:00
2026-03-18 16:46:13 +01:00
2026-03-27 23:03:01 +01:00
2026-03-29 20:32:15 +02:00
2026-03-20 15:34:56 +01:00
2026-03-10 04:31:53 +09:00
2026-03-23 00:54:51 +00:00
2026-02-20 16:56:16 +01:00
2026-03-30 23:34:44 +02:00
2026-03-26 10:31:23 +01:00
2026-03-30 23:34:44 +02:00
2026-03-20 15:27:08 +01:00
2026-03-30 09:37:32 +01:00
2026-03-27 11:24:49 +01:00
2026-03-26 18:13:17 +01:00
2026-03-26 16:11:34 +01:00
2026-03-29 20:32:15 +02:00
2026-03-26 18:13:17 +01:00
2026-03-30 23:35:29 +02:00
2026-03-18 10:28:47 +00:00
2026-03-30 13:34:58 +02:00
2026-03-03 15:26:45 +01:00
2026-02-20 21:20:45 +01:00
2026-03-18 10:28:47 +00:00
2026-03-31 18:25:09 +02:00
2026-03-27 23:03:01 +01:00
2026-03-20 10:13:34 +01:00
2026-03-20 11:37:31 -04:00
2026-03-26 18:13:17 +01:00
2026-03-29 20:32:15 +02:00
2026-03-26 18:13:17 +01:00
2026-03-31 18:25:09 +02:00
2026-03-30 23:34:16 +02:00
2026-03-16 23:05:59 +01:00
2026-03-31 14:42:02 +02:00
2026-03-18 10:28:47 +00:00
2026-03-20 09:57:55 +01:00
2026-03-26 18:13:17 +01:00
2026-03-26 16:11:34 +01:00
2026-03-28 19:56:31 +00:00
2026-02-25 13:51:31 +00:00
2026-03-26 10:31:23 +01:00
2026-03-18 10:28:47 +00:00
2026-03-29 20:32:15 +02:00
2026-03-26 10:31:23 +01:00
2026-03-20 15:34:56 +01:00
2026-03-19 08:51:18 +01:00
2026-03-26 18:13:17 +01:00
2026-03-27 14:22:29 +01:00
2026-02-18 23:14:11 +01:00
2026-03-26 18:13:17 +01:00