public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: AF_UNIX/AF_LOCAL
Date: Wed, 3 Jun 2020 15:23:20 +0200	[thread overview]
Message-ID: <20200603132320.GH6801@calimero.vinschen.de> (raw)
In-Reply-To: <000301d638db$dced49a0$96c7dce0$@gmail.com>

On Jun  2 14:46, Kristian Ivarsson via Cygwin wrote:
> Hey folks (probably Corinna more specifically)
> 
> As far as I know the "unix domain socket implementation" is not really
> complete
> 
> We tried it and it didn't work for our purposes (the symptoms were UDP-like,
> i.e. it seemed that some messages were lost along the way (or possibly ended
> up in the wrong order)

That shouldn't occur because the current AF_UNIX implementation is using
AF_INET sockets under the hood, and it doesn't implement any packet
caching overriding the OS buffers.

> As far as I understand, Microsoft/WinSock support AF_UNIX/AF_LOCAL with (at
> least) SOCK_STREAM (I do not really know what system dependencies it
> requires though and thus the Cygwin implementation might not utilize that at
> all?)

If we'd only support W10, that might be ok, but as long as we support
Vista/7/8/8.1, we need something else.

> The branch topic/af_unix seems to address this issue, so our question is if
> anyone knows the status of the AF_UNIX/AF_LOCAL progress ?

This is the new AF_UNIX implementation using pipes under the hood.  I
started it quite some while ago but got thoroughly sidetracked and have
a lot other stuff on my plate.

The skeleton code is already in master.  The topic branch is a bit
outdated and split from master so some merging is needed.    It's built
into the Cygwin DLL with -D__WITH_AF_UNIX.

What this code needs is some dusting off and somebody picking it up
again.  Maybe in winter I have some time for that again, but it wouldn't
hurt to have somebody else with interest in the new implementation to
help.

Patches welcome!

Also, nothing speaks against a third implementation using native Windows
AF_UNIX sockets under the hood on systems supporting them, provided the
pipe implementation works on older systems, too.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

  reply	other threads:[~2020-06-03 13:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02 12:46 AF_UNIX/AF_LOCAL sten.kristian.ivarsson
2020-06-03 13:23 ` Corinna Vinschen [this message]
2020-06-11  6:37   ` Sv: AF_UNIX/AF_LOCAL sten.kristian.ivarsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200603132320.GH6801@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).