From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770097.outbound.protection.outlook.com [40.107.77.97]) by sourceware.org (Postfix) with ESMTPS id 518193858012 for ; Sun, 6 Dec 2020 22:33:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 518193858012 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VkwynerImddzbyRuFLEqjWeqyISj8hPenPLOjKH/3atfG1r8F2UynbCns4oaC155717hWjL9nBBkSWmtqwbE5IgH3NZMz1ZzUb+m0nYIyxfZfdE6hojCAJdgi4eSGIhUnTOLkmy4V6WNAbbAaebRYjjrKC1u+ioEy1fIT1luK83Oqu4zBUtesW6av/04VB1ob/JWwpdrZP2DXJI1NNH+FjXLFaWOpout19uCX2ue2WGVlhxmXTYQN3XopCA5b2QzdagfpIjifJfFQdvLDDmUIGDTPS3U3IU+5CxLYp7Askc2MxH2s5C+RKFvn29aOgjMub1mF787NxCfhVhWEmSm5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GqZ5zy6lLkyALL5CnPUjHgrrruOY3qcDUxeL50JnQU0=; b=QleKTCaQqRusAm+bsJVicVxxe34XQeGXkH2pZju0UwKL/DDW4aCwpx55SfC1mcKaNn5qTvvrZ/5eDhMYavmw7dXMptBL5cgM0zOahgHz1AoQ5n1J+N9r+TZUMRkk4B31x/jLHKtNrzhvC0/unQc5CCK65F1OCRlQdsqbgd1lBMj8fzuuN/k6gS/D+aqScc1GhepVOOEoEzBts6c/JdhUAS6OeLabLiGx6n+0T9Bspdh0p8cLDvlfGxuT2gV6B46ZTIZcaBKtbXCmdQ5NrAN9xMQ/mRTA4rlUMvP22/lYoesJkcA4N/swf4horYzwMaT8mzwTUCqnoHUHz8QdvWqs4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none Received: from MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) by MN2PR04MB5856.namprd04.prod.outlook.com (2603:10b6:208:a2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Sun, 6 Dec 2020 22:33:00 +0000 Received: from MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::113e:c874:1207:eca8]) by MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::113e:c874:1207:eca8%6]) with mapi id 15.20.3632.021; Sun, 6 Dec 2020 22:33:00 +0000 Subject: Re: Unix Domain Socket Limitation? To: Norton Allen , cygwin References: <71490665-31b0-f63c-74da-461a053fac21@huarp.harvard.edu> <55ea1649-1979-6238-75ab-69100c22e069@cornell.edu> <4260ad1b-4ab2-fa36-fd0e-7c9644560114@huarp.harvard.edu> <38a82f82-1ef9-768e-7d3e-15f63147e188@cornell.edu> <16165727-f614-1543-70bc-36457ddbf260@cornell.edu> <75d1315b-5a56-a2e5-310d-6ac33a3cf17c@huarp.harvard.edu> <85c9c70f-c016-0f88-099e-5c772adbc648@huarp.harvard.edu> <1a0944b7-5924-31ab-7198-a5c311f39e06@huarp.harvard.edu> <1c1e875a-40a0-ff9e-a119-ba77203e43ea@cornell.edu> <816668c9-4848-caa8-7fae-349be2cd5ab7@cornell.edu> From: Ken Brown Message-ID: Date: Sun, 6 Dec 2020 17:32:58 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [65.112.130.200] X-ClientProxiedBy: BN6PR10CA0002.namprd10.prod.outlook.com (2603:10b6:405:1::12) To MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.13.22.3] (65.112.130.200) by BN6PR10CA0002.namprd10.prod.outlook.com (2603:10b6:405:1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sun, 6 Dec 2020 22:32:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b61fd09e-891e-4b5c-9c85-08d89a36e338 X-MS-TrafficTypeDiagnostic: MN2PR04MB5856: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DBKAHLWbEhDcE+D0DUGxz9ITC5msxi8XUZHZ/XVl8FgcBMEy/wGjyECzvPNz2Ekg3dqt2cwch8M+gTong8geI+1RSPItYgZuWXllzRZTJq3D0FDRPoYIVE7Z7TbB2Sw3KeuR4DlALMUa+tI0uk3yX8i6O4unVCNy0t4/XZxegsSdk2hQNAeNU6xFRqSznLFfAIcU7bYV8exzdjYSErs1DVxYiJd9drz+39tCNOTdZZBD71TiFTKguYeQ3w6I3P1y3hY0zgaxI8DDk5BN6s5R45p6VYV5uzDCJNewnc64n8l/dhvMfpn+QEQV1dcG5hgA4FWPfqykCj5tSNTYBijQrVlRZd/5fPeDzDnchzlF1Byrc7PkkobYlK6rMfjVoUkuLiwbEzldnq0V4Q7Fep8gIExnf9yz0BU8eIMlkyOKUikTaRJLQLwQPNcYGs9pEnkdW6y3q5NpIciVK1uaokpeeOG1TRykJuURw3JFYocwLsNcJJWm5O4EjFdgoCkItqJn X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(136003)(346002)(366004)(39860400002)(966005)(316002)(16576012)(52116002)(75432002)(5660300002)(110136005)(66476007)(66556008)(2906002)(36756003)(26005)(66946007)(31686004)(86362001)(16526019)(186003)(53546011)(478600001)(3480700007)(2616005)(8936002)(956004)(83380400001)(786003)(8676002)(31696002)(6486002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?Windows-1252?Q?DQm787M+w0SRMPvzKaK1tCkM1lx8aecR4fFk4gfH4on2vh/Avpd26TR0?= =?Windows-1252?Q?RYK6Qu8SoHDf6Hhhvu4aEfIodRpZPAKhjGT+kp6IXWtrKoQsKeepGuGs?= =?Windows-1252?Q?EesMgY5QRNsKirVO23kmc9H1+KGavJlfiHTFV5ErYcZIsQ/RbCfJ48PL?= =?Windows-1252?Q?zlNbT5KjHxrBF7xI8bmzuN7fih4OJhvw9pJ8cv1HEmamEBfT+CPi0ZDq?= =?Windows-1252?Q?LbIkqr2gHhofyrrjanAX3NEaYMfKa7WhFdh7+jGTx5nIfvBjNf7+0bN9?= =?Windows-1252?Q?IBGe1Rm9ypmZekMpHLl+C74LFDmuNfQy41AGO1gBl4iCGdfT8bijROim?= =?Windows-1252?Q?ntTbqxYWEQeNbvtWtcOc3OyRwP/HVp98ghi4SHDsLCay3ojRBruJ63YO?= =?Windows-1252?Q?tEMn/H1b86VJwG2bcPtoPZL51smtZCG+I0vIFXGXq/ElgLfs6p7Sl1wb?= =?Windows-1252?Q?1YHpDTdagHOf6FT2wYkTb/rTVu7sp3Io9EwdkNPTHQ+kVcz6d+B+CPLF?= =?Windows-1252?Q?Kt++laRvVuYDPUZf9o4DqZPv5QrmgUNZtoQ4kk13q7EzlYtel6NSE+vz?= =?Windows-1252?Q?4oGg+PZMFYntot0oWhmQYpS/FZ9gzRl+XTU7y0zAuVBADARZ69Z43RVl?= =?Windows-1252?Q?0b9myTl4k6HcKjj09fKpHK3wI0bQUncZBV96OJv0q9rScdvlTf7niK7n?= =?Windows-1252?Q?v3TtnsKEcZBfOTs8A9xyRLpqML23u5ZobBSmEAR7q7bLfCFBiG5R3jHA?= =?Windows-1252?Q?99sB5uyYelo/wbTeWnIIJdkLQ+SXDNdKRlCCAFet2yumbfboDTwj5Tlu?= =?Windows-1252?Q?3QyGnFDl/KasOcPtQTxOhImgCy0DBn28CK7d4TKoHCgyWmkUeGfXMMGs?= =?Windows-1252?Q?HzP7x4bph5ffRFoy/9Ist9Jrsu5iqGGrqQWZY2Pg/9d/9Z0Iw2RoJxjd?= =?Windows-1252?Q?1rulfOPyyF3s6pS/W04jochYMmsjOhVqdO3PXTRVOniss0zXCMEBPnP9?= =?Windows-1252?Q?HUO1l0G4obiZBUvXhxCnxSRAKcmyTomShJbn6mWv1zChywLtyoQ9mRP+?= =?Windows-1252?Q?VTJfI9FHCQJaoLyZ?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2020 22:33:00.2865 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-Network-Message-Id: b61fd09e-891e-4b5c-9c85-08d89a36e338 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o7sUlkEYWepb4bTzKZsNot7ZR70RwBCb7z9sZnkuvVYeeb5SLDcbNGiVb6jcO0RxS4BwIo64jSQfI4RXff0oag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5856 X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no 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: Sun, 06 Dec 2020 22:33:08 -0000 On 12/6/2020 12:17 PM, Norton Allen wrote: > On 12/5/2020 6:52 PM, Ken Brown wrote: >> On 12/4/2020 8:51 AM, Norton Allen wrote: >>> On 12/3/2020 8:11 PM, Ken Brown wrote: >>>> >>>> I'm traveling at the moment and unable to do any testing, but I wonder if >>>> you're bumping into an issue that was just discussed on the >>>> cygwin-developers list: >>>> >>>> https://cygwin.com/pipermail/cygwin-developers/2020-December/012015.html >>>> >>>> A different workaround is described there. >>>> >>>> If it's the same issue, then I don't think it will happen with the new >>>> AF_UNIX implementation.  More in a few days. >>>> >>> It does seem related. >>> >>> A work around that is working for me is to do a blocking connect() and switch >>> to non-blocking when that completes. In my application, the connect() >>> generally occurs once at the beginning of a run, so blocking for a few >>> milliseconds does not impact responsiveness. >> >> For the record, I can confirm that (a) the problem occurs with the current >> AF_UNIX implementation and (b) it does not occur with the new implementation >> (on the topic/af_unix branch).  With both client1 and client2, I see >> "connect() apparently succeeded immediately" using the new implementation. >> >> The new implementation is not yet ready for prime time, but with any luck it >> might be ready within a few months. >> > That sounds great, and exactly like the behavior under Linux. I'd certainly be > happy to test the new implementation as it gets closer, and also happy to expand > or improve the test apps to cover a wider range of functionality and/or > usability (e.g. run both client and server via a fork.) Feel free to let me know > what would be particularly useful. Thanks. I'll take you up on that when the branch is in slightly better shape. Ken