Re: s6-tcpclient read/write FDs

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Tue, 17 Mar 2015 17:48:08 +0100

On 17/03/2015 16:52, Vincent de RIBOU wrote:
> Hi all,
> I assume that read and write separate FDs (6 and 7) are only present as compliancy with other tools which produce 2 real different FDs.But on TCP is not really.
> I've made TLS client over s6-tcpclient with wolfSSL. This lib takes only 1 FD for context.Since FDs 6 and 7 are same link with s6-tcpclient, I used FD 6 for ctx building and it works.
> How should I use 2 really different FD's in that context??May I set internal unix concept to mux 2 FD's on 1??

  You can simply ignore the second fd, which is just a copy of the first one.
  You can even close(7) at the start of your client and use 6 everywhere, it
will work.

-- 
  Laurent
Received on Tue Mar 17 2015 - 16:48:08 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC