From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id D6A97389244B for ; Tue, 6 Apr 2021 07:52:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D6A97389244B Received: by mail-wm1-x335.google.com with SMTP id y20-20020a1c4b140000b029011f294095d3so1683344wma.3 for ; Tue, 06 Apr 2021 00:52:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fMi2/KIuGw+0PS82r6cLdxq8qWeS79WXzB3wuGcC2sM=; b=njOvxcCV5DqkDEkMVLOl8N29KikaVEJgfZD5+MGd2lM2ql6+CumHP5FRh2F38VcBP7 V2xwHssJdn1LBW96UsHjCurbHBaUQq26yZedtVcsWTXrGWLi3X8WodnRrdmIxH7ZRGlI OsLIg+0iebD1hYniPPNU6aRuGX09F6ngb8djo9kEG8G3lihy3lRpbSIXu/pn2OOAQ72p vrI2dX5jJOYZ5AGsspZ9AOr3OOBJbti7k13gHWRpZ0kVWE9K/CFJ4Rrq1sjatmQUiEj0 Y2AEhnSM7hAxgWGviBgk4PQ55Cn7mxAIWTDE38P1igGCh4PAd5jF/O2Dzy/ct/Sz5z1q H34A== X-Gm-Message-State: AOAM530N0vlvuuF9LGFI0P7sBaDGa6u/zWtvwPdX9+m72J/qHlb3wEi8 ZbtdT9WIaaiJpjs5MA+nsEjEd5htQOsOkQ== X-Google-Smtp-Source: ABdhPJxWSSSLU13zPAjKRpSvoTa07OMmUYZKbbvbGPkRTk+Lyu0uINcNGMrL719j+xH16v4GBz9z3g== X-Received: by 2002:a1c:6382:: with SMTP id x124mr2851342wmb.142.1617695566891; Tue, 06 Apr 2021 00:52:46 -0700 (PDT) Received: from [192.168.1.186] ([66.251.172.74]) by smtp.gmail.com with ESMTPSA id c8sm33965019wrd.55.2021.04.06.00.52.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Apr 2021 00:52:46 -0700 (PDT) Subject: Re: AF_UNIX/SOCK_DGRAM is dropping messages To: Ken Brown , sten.kristian.ivarsson@gmail.com, cygwin@cygwin.com References: <04cc01d71ffa$7d1e6cf0$775b46d0$@gmail.com> <00d901d7208e$97c05c50$c74114f0$@gmail.com> <860668bf-8cf9-0969-6a01-7fbf8b782db1@cornell.edu> <000901d72607$55dc5a90$01950fb0$@gmail.com> <3346cd1c-b93f-83c4-ff26-553ac95ec692@cornell.edu> <7c21a430-9609-7fd4-1a02-8b7c1978d2f8@cornell.edu> From: Noel Grandin Message-ID: <6a9ada5d-9749-3e08-be64-084b04cd819a@gmail.com> Date: Tue, 6 Apr 2021 09:52:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <7c21a430-9609-7fd4-1a02-8b7c1978d2f8@cornell.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: Tue, 06 Apr 2021 07:52:50 -0000 On 2021/04/01 6:02 pm, Ken Brown via Cygwin wrote: > Here's the issue, briefly.  The communication is done via a Windows named pipe. The receiver creates the pipe when it > creates and binds its socket.  It creates only one pipe instance.  The sender connects to the pipe, writes, and closes > its handle.  But the pipe is not available for another sender to connect to until the receiver reads the message, after > which it disconnects the sender. > This https://docs.microsoft.com/en-us/windows/win32/ipc/named-pipe-instances seems to indicate that multiple pipe instances are needed to handle multiple clients nicely - it also has sample code for such.