X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99D64383E824
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1591190608;
	bh=I9svET06XMROokTzjbMkmzruSzsc/0UJXDHJ2D2zp0g=;
	h=Date:From:To:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 Reply-To:From;
	b=wLLmbJHyVriLpP92PWbx3jxjNFyBt3I0U3zzv24fV5VvDAR1abGErCfzeUAmTA8Q8
	 W//LbuWKhMCZD4P5Gv2i531seWuhjIeGjDkvLhQwAYWTX3mBtfB33X4Fd0CcLzRHlv
	 dlgmI3lP5loFke159svik8ku9ghInTDElI1idRIw=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9957A3851C27
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
 spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com
Date: Wed, 3 Jun 2020 15:23:20 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: AF_UNIX/AF_LOCAL
Message-ID: <20200603132320.GH6801@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <000301d638db$dced49a0$96c7dce0$@gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <000301d638db$dced49a0$96c7dce0$@gmail.com>
X-Provags-ID: V03:K1:YDyItfRP37MKiC7eDpoBVQ4e7PpPDw0bZo+K63yqZO3KfjOCuJE
 GtHZ6DJ3dgB1cd4Rf4Mw76T+AA7LDqkVyYztOzhAx82L1Y+c8od8ApSUaUdLjBNBBJyDUMh
 Fd3V7is6WYYCVXFnveWD5S9GEhpE+O5cfkVk593ULBLDO5swAjnWqKLjsO/TW4sF65cg4sS
 Gf101EH/lqBUCuMlUao8w==
X-UI-Out-Filterresults: notjunk:1;V03:K0:vclhRe2MGb4=:7baLD0eUOGKIfPNdc93SgR
 0hi0Ojh5JPWPkzFNMv+V4i3vbYGjCTcpgXGJjAOPrz3jJR8uWTjr4pxhFtygc198V15T8KitJ
 j0kXvtcCk424ZRs+6LsBt4b5XrlHjiL2ubLsVTOaNSrskYcSNVSjNCfGI1i+Gk9vbNqWCcLzT
 7Ys+VoQEncxsRMweYR+/KxubXYpK9GJbAyLeFSLy/hKNxHnofoB9UotxmDbJuTuJoL1wDUsWD
 QAqm15RcAB7it1WNX0YMsxCyyvlONy+o8WwsIYE7zFNIgDziOaVfcvnsLUh0VT+LWqf/pPOS0
 45laSkuaebrTZHqyOyGsz/srMu7PR+P09gtNhmu0IKykoEqrWLHkM6FH1tl/7YLtBbdpKKeLh
 5d+Cyar8J19NOvP740QX90TWb9gXH+NLEfe4PbsgXej0bHAym+HkxJAYc4Lm3Thaljp83/GHM
 4j18NCJUOOqrRE9KD/gTqoEdS44PnYHLJOpfDmzk9qV1dz/CVrnD36M4Uiq7iBMx2p+1QWmIo
 kNS753KEMkgrnI23G2acYdUdLhi+uaDL0eJRBrPll5XmVxY7hB8X6L8ZAFMhULQXpsEZGevVI
 lY3B9wlwqwN9NE0L9WaNL980nHUP3O8YyAP5JJQ48lsALompCMfS6YTwqS7k65C90GT7b9m/8
 PehMeG21Dut7chaqwqONQRqeT9DOTVW09VcqnPitqhJr84AJ15zrniBFm2PnXEMgd6HuFFu4D
 3+68m76PfBMx+QLrpfvRsOO0o8JPd47RDt9xr2ueZEw4bfu8csY187fZQxE7Y7t+Nxl/jAs7n
 2VCYWk6MAiDigHdW3eEDjEhTXsxMJwAetOcRSr5Ypl5L/jnzxwB8wSrQOKDwsp70Qm46kYD
X-Spam-Status: No, score=-99.1 required=5.0 tests=BAYES_00,
 GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS,
 RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.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
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
