delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org E9AD83858010 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1635299365; | |
bh=WbCv9w+RGiyy4lnEkAxnZGlSyJPuErEADZkvfZjpL6A=; | |
h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive: | |
List-Post:List-Help:List-Subscribe:From:Reply-To:From; | |
b=npU+ovRPlQTnZSiQznlezxlWmlZ4t/6KtVDpx+P5Ewu4cwS7E0PHxUAvQDst5NdvB | |
q39mPF6ikPG1JToYiAFPK7T6G+uwfQUrznA8jBWdf80SeuhBYLNg92pCxqSpdnp/Io | |
DcTZtPyIhhlEis3J0HFo4asdAd3BCX4dhXSuBfWI= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org 555293858405 |
X-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
Subject: | Re: socat UDP-LISTEN,fork misbehaves |
Date: | Tue, 26 Oct 2021 21:48:07 -0400 |
Message-ID: | <bnbhng5mccdpulc9t4npkom2akebm78foj@4ax.com> |
References: | <895fd3a8-2bd8-ffce-2b3b-ba371aba8612 AT gmail DOT com> |
Mime-Version: | 1.0 |
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 AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Andrew Schulman via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Andrew Schulman <schulman DOT andrew AT epa DOT gov> |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
> 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 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |