From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by sourceware.org (Postfix) with ESMTPS id 9957A3851C27 for ; Wed, 3 Jun 2020 13:23:25 +0000 (GMT) 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 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mv2pC-1ipbj747W4-00r3DV for ; Wed, 03 Jun 2020 15:23:22 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4595AA81008; Wed, 3 Jun 2020 15:23:20 +0200 (CEST) Date: Wed, 3 Jun 2020 15:23:20 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: AF_UNIX/AF_LOCAL Message-ID: <20200603132320.GH6801@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <000301d638db$dced49a0$96c7dce0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 13:23:27 -0000 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