Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: feature request: support specifying Unix socket with systemd directive OpenFile=
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Erik Sjölund via curl-users <curl-users_at_lists.haxx.se>
Date: Thu, 22 Jun 2023 18:59:15 +0200
On Thu, Jun 22, 2023 at 5:53 PM Dan Fandrich via curl-users
<curl-users_at_lists.haxx.se> wrote:
> How about just doing this like inetd and passing the fd in as stdin?
Unfortunately, it's not possible here. File descriptors originating
from OpenFile= are passed by systemd as file descriptor number 3 or
higher.
Quote:
"The first file descriptor may be found at file descriptor number 3
(i.e. SD_LISTEN_FDS_START), the remaining descriptors follow at 4, 5,
6, …, if any."
from
https://www.freedesktop.org/software/systemd/man/sd_listen_fds.html
Quote:
"See sd_listen_fds(3) for more details on how to retrieve these file
descriptors."
from
https://www.freedesktop.org/software/systemd/man/systemd.service.html#OpenFile=
Erik
Date: Thu, 22 Jun 2023 18:59:15 +0200
On Thu, Jun 22, 2023 at 5:53 PM Dan Fandrich via curl-users
<curl-users_at_lists.haxx.se> wrote:
> How about just doing this like inetd and passing the fd in as stdin?
Unfortunately, it's not possible here. File descriptors originating
from OpenFile= are passed by systemd as file descriptor number 3 or
higher.
Quote:
"The first file descriptor may be found at file descriptor number 3
(i.e. SD_LISTEN_FDS_START), the remaining descriptors follow at 4, 5,
6, …, if any."
from
https://www.freedesktop.org/software/systemd/man/sd_listen_fds.html
Quote:
"See sd_listen_fds(3) for more details on how to retrieve these file
descriptors."
from
https://www.freedesktop.org/software/systemd/man/systemd.service.html#OpenFile=
Erik
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-06-22