From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 555293858405 for ; Wed, 27 Oct 2021 01:48:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 555293858405 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mfY33-0005Ev-Ve for cygwin@cygwin.com; Wed, 27 Oct 2021 03:48:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: socat UDP-LISTEN,fork misbehaves Date: Tue, 26 Oct 2021 21:48:07 -0400 Message-ID: References: <895fd3a8-2bd8-ffce-2b3b-ba371aba8612@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 4.2/32.1118 X-Archive: encrypt X-Spam-Status: No, score=-3032.2 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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, 27 Oct 2021 01:48:16 -0000 > I have socat 1.7.4.1-1 and the same version on Linux. > When I try to create a forking UDP server, only the first client is served, unlike in Linux where subsequent clients are served properly. > > Test case. Terminal 1: > > socat -v UDP-LISTEN:12345,reuseaddr,fork SYSTEM:"stdbuf -i0 -o0 -e0 sed s/././g" > > Terminal 2 > > ( ( date; sleep 10 ) | socat UDP:127.0.0.1:12345 - & sleep 1; date | socat UDP:127.0.0.1:12345 - ) > > Expected output in Terminal 2: > > ............................... > ............................... > > Actual: > > ............................... > > Reproducible: amd64, x86, Windows 10, Windows 7 Thanks for reporting. Unfortunately, I have no insight into what might cause that fault in Cygwin. socat in Cygwin is compiled OOTB, with no patches. Any debugging or patches would be welcome. Andrew