delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/05/03/09:58:46

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD5EC393C038
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1620050323;
bh=tEBgDbBcip8LZ3P45AAxNQoptVehfaLNuxc1i9kRfSc=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=mZwjTZWBIvhRDmORcC6IgwqV21rWqNiumFT5TPVQGkAJNO1ROuQOP1yEtaWFD5y+z
8YHinWXae3edNbbacfFB7TqN3E3UOmFQJdDptRzNEm64uFM+jUxpu40scB7P9T3mqB
HrT0oTFNsYg4cjw3/Xsh/ydec3aQeWRh5jQ+Ewsk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2E5843938C24
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=DV3nrPOdnbTie+tW32CiD8gLWrW0f4Lx8pDtl/QFzwsq2ItKGD5epUeDKKZ44xrWVMtB7+uOcXgIAIZ8JNy9V0Lq13I/61zsivtiW7iNzq50fisDm6QmNZTU0ppYhlkIAfw6WJXtb0lTlrTQFt8qApcVrGWQjlIRZDJXs7bfPJFot4wDPRYmkLqXUOOPEkp0dcMpWbyQirikaMsdE+tSEx5haqwmIsPHBh6NyJSZJs6bEnn8VZrEfgdY4ATyhLYIxJl++k8dnFApvIv8dVdOWRXX8hYlpSciyVGSXLkS9FiVuw0qMUE4VJ6aA4beEt7mEGaEJULtT01wOvhVruHiwQ==
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=2yBN+C5aNVe6pHknd3mlNDdDM+RO7fyc3nMsfNsFcMc=;
b=DUD1BpByJIb/0nVqZTGhaZRf7aGIp3NkdIACSFyy7GXY5FHFu6B16u5hl+caA2Jdd7f56p2gB3s4T5+N9W//ex69j6Vd4tK4jd5PojFhTQRy0bT9JHss8gOabBY5zSiIFU8drvWi6ve2mJgm7fvnDOMIAMtmNutN5l6aqcwrjYvKX/tChzw+vTjoMZ0NNAFQoj32k592uayHBu3EOiEyXZ/yODSfvsjG7A/0f+K9Ka8hIrAcd0wvYxxuR1w49k7Sxh8l6zotew/ZBAs+yKMVoOWPsQi+tx5QzNY27mvYcGD9oUtHNIQwF1/bz0G5SgIUcNMWlURoGqAqmVNaoKe4/w==
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
Subject: Re: python > 3.5: Issue with unix domain sockets
To: cygwin AT cygwin DOT com
References: <1620046759893 DOT 5340 AT bmw DOT de>
Message-ID: <2cde4128-6a3d-7431-6608-a2184d23964a@cornell.edu>
Date: Mon, 3 May 2021 09:58:36 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
In-Reply-To: <1620046759893.5340@bmw.de>
X-Originating-IP: [24.194.34.31]
X-ClientProxiedBy: BL1PR13CA0306.namprd13.prod.outlook.com
(2603:10b6:208:2c1::11) To BN7PR04MB4388.namprd04.prod.outlook.com
(2603:10b6:406:f8::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 650e10a2-65e2-494a-23e1-08d90e3b8ce3
X-MS-TrafficTypeDiagnostic: BN6PR04MB0244:
X-Microsoft-Antispam-PRVS: <BN6PR04MB02449FD648293989A30492C4D85B9 AT BN6PR04MB0244 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:8882;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: jk3h+upcJTtO7HeL/+qtWCnqzq4kYVjonCN5vAAVTHmLSVc9uAPaA99XtRbUra2YL0jdOKZdrUlPugLTLi+TILoYQoyhGT3tKTPKYbPTLPO5NQaCFIhiMtb3Lz8cme50z8jdwRGl0HzyCxAKOle5yveoif0ITMaaw0aRDanC26QJISxDGm3YIwjZvy/mvOett1qRAYSs01hbocdKFINFtoEVTKlRVa1XZ8bToGzJGYT0++ObIf90cjmC7U8B3CsgvrKVDfpWDc1sIx2ckwGagh6i48FFGMP2pXoq22IOT1ZuPZ89j+gYA6ZALe5iWGzPRBgXmsLNhEfPJ4V3o6wUg5/X9m0liRZ3C0TLuCnbQ/l9KG84omzA8v8Tp/9V82rAnuZu6iu9B/LfgAOHJUdcRZZOgPErrom/A1ZO3pcwdRzhByml4qoUuiLsRU3aMNNW7QAnRjmwlSO9YXgq4BgyuO3sKqqwQda2T7uvV/uJiJQztKFBq83lqeqVSYTu1RIGa29MCVl/TKnuLDIWP2urpJ+Ogj4OyOz/uxEcxSBsE2i1aj1uYAxd3vXuGRYWewSOr89H1O7vedMk92+CEjizk1PszqZ3MPlg6o6Wz7B+9AUtu9AacdZ2Tr5L3rhDFalxk3JSaGkzGvJeyC5nQz2zRgBkh8EtOZPobTABDkXP/lf1n7aC7Hww39OV7uC0Hk9NXnSlD6h1MfTw4t2FCArO2Ba5jqqKGcQeFEioNHFBOXgjgdi3vRBuem5OF4iUVvxs3WuCYvFGy1LPrfzYjs14telkHSABEfZKdRDw1C5Vwy8=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(366004)(346002)(376002)(136003)(396003)(39860400002)(31696002)(86362001)(31686004)(8676002)(2616005)(38350700002)(38100700002)(75432002)(2906002)(6486002)(956004)(36756003)(26005)(53546011)(478600001)(316002)(66476007)(66556008)(52116002)(16526019)(66946007)(186003)(5660300002)(8936002)(6916009)(786003)(966005)(83380400001)(16576012)(45980500001)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: =?Windows-1252?Q?tNAJtUkFyjE9zeljlmhek2E7cr/fjEEvFpMY/6oikx5PPP8CIcW4aQjh?=
=?Windows-1252?Q?amPS+UveRhsFCWPoX9d5nyAXKRgrOagP2NuKF2KnE7r2RixlIy8IBQAw?=
=?Windows-1252?Q?pNenxt0bjUKd5QECuEjc8SpUeA5evA+PMldgyLLDCbuT5Z+I6mg+UG4B?=
=?Windows-1252?Q?12UJ1GhBLWzfrH4Los8PL7TKmyNeklGhHiJQQDQmxAmSVAfgqeEoXmAv?=
=?Windows-1252?Q?+kwTdlVztGhLyeJZv/wZqOx2ZndQLnvKtsUMSEB9L8Y4jWUofydigiFY?=
=?Windows-1252?Q?5a35R3izrcPS7KQ4fgUGxPLi2+T3bZdmhQHocuG9FA7DV+5KXcaRtJcA?=
=?Windows-1252?Q?/YE+YmzmU75E2EardxAvC50Yn3+kBnjAk2nvI+h/ITzi1DRzktYULzWf?=
=?Windows-1252?Q?fDhiTVi8W/OwUyHusxBSTK1nzXD3ix/IaEmk2pNHKms9Yq8coSs+aT2j?=
=?Windows-1252?Q?8GmYKip6o/gI0IUjUKVJcYalvpmoMLC7yp9oV9OB985C0ds6RVbzJwmw?=
=?Windows-1252?Q?fsluP11YkTMtEzRMLVtWVw4hiiu9yQ+fTGbmJN6b0FxcTz3kfyiakmlj?=
=?Windows-1252?Q?QC6TV+VHQHPU2Jtb4PSSB6vXKAsDQzgRiBaCEAQpKeqsr5ZhOoVCDIKj?=
=?Windows-1252?Q?0qqASifIkVNemiJ9HKbqBp1iSTG6MWTKeVRJRRl9cM6kHbNDSeOWuRDL?=
=?Windows-1252?Q?c+WicvYsUvr3KBs57jsy0S550sBhI1C3pPHoa66MTeJ69vYzjoARD15i?=
=?Windows-1252?Q?ww+gWW2HpyzYeDB6LVC0Zkr7JQmKI7JC1IW8MHSjK2w+X6y73qOFxILM?=
=?Windows-1252?Q?Ii76QJnD0UPYCeDfcx4Rq4uXkSoW3BXfsdA0Pj+7nqCTLzTMfor1dMGm?=
=?Windows-1252?Q?G8HhER2vnOwjsL3zwgnDJ2mIUQtiOwPe23Sq/5ONt1unGt0xDj/jtSq7?=
=?Windows-1252?Q?R0bbxDFKwNSc7wqxnYhgoSH5Wc3EjWp1J0ueFI6AzmOfTBbdUy6L6BY4?=
=?Windows-1252?Q?457bpQqnfdvqRMOu3N9Y9c+PIMCha4iuNNCHWprd8hL9EjW6HbfpCtGF?=
=?Windows-1252?Q?xKBfv5JtOKxX/0oQHGAGROSYlzAqVQR+Xkc4Dy4sypwuYqYFXdTSjQfm?=
=?Windows-1252?Q?ZUy0FFvLH9M487dUO5i7WXsa4DSvL7fB/95OY62rCQhVcbN0RS/xForA?=
=?Windows-1252?Q?3s4g5FQQrKzCw2vlNJw2QBtMyYcd/BK9sk8cDxUnnTzAq7+lBRIEOT7x?=
=?Windows-1252?Q?6UPdrwjq2/Abv5DOvfuCZsOHIbGpYx7g8ydwiQA8iGV/Tn9RAZp7nslM?=
=?Windows-1252?Q?CIu59AdtcDqGTiMaPvie3aT3bz82Z1c+VneojT7eVrbmBL1p/xHiF4O/?=
=?Windows-1252?Q?gVtqkkKFQ5cbYYoQanYFF7KwbG1H919vLTHP25LLQf4mZzJ5MewZLBxg?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 650e10a2-65e2-494a-23e1-08d90e3b8ce3
X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2021 13:58:38.0670 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: uNs4dR4eFW7I+OWzNSGLbVSHpG32oUAGx/kPyXPn0FxggikGZM2udxuBfPT5siXGTQT6iV9e3mHT7QvwyVD3mw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0244
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 143DwkoV026655


On 5/3/2021 8:57 AM, Maximilian.Blenk--- via Cygwin wrote:
> Hello everyone,
> 
> I noticed that latest Cygwin release (3.2.0-1) has an issue with python and unix domain sockets, although I’m not a 100% sure about the root cause. My best guess is that something is wrong with the unix domain dockets implementation. I would like to attach the cygcheck.out but it seems to exceed the 180kb limit mentioned on the website (even zipped)
> 
> Simple Reproducer:
> I tried to get the example shown at https://pymotw.com/3/socket/uds.html working. It works if I execute it with python3.5 (both client and server), but it doesn’t if I use python3.6 or newer (actually tested 3.6 and 3.7 on Windows 10):
> 
> Correct Behavior:
> Server:
> $ python3.5 server.py
> starting up on ./uds_socket
> waiting for a connection
> connection from
> received b'This is the mess'
> sending data back to the client
> received b'age.  It will be'
> sending data back to the client
> received b' repeated.'
> sending data back to the client
> received b''
> no data from
> waiting for a connection
> …
> 
> Client:
> $ python3.5 client.py
> connecting to ./uds_socket
> sending b'This is the message.  It will be repeated.'
> received b'This is the mess'
> received b'age.  It will be'
> received b' repeated.'
> closing socket
> 
> Incorrect Behavior:
> Server:
> $ python3.7 server.py
> starting up on ./uds_socket
> waiting for a connection
> Traceback (most recent call last):
>    File "server.py", line 27, in <module>
>      connection, client_address = sock.accept()
>    File "/usr/lib/python3.7/socket.py", line 214, in accept
>      sock = socket(self.family, self.type, self.proto, fileno=fd)
>    File "/usr/lib/python3.7/socket.py", line 151, in __init__
>      _socket.socket.__init__(self, family, type, proto, fileno)
> SystemError: <slot wrapper '__init__' of '_socket.socket' objects> returned NULL without setting an error
> 
> Client:
> $ python3.7 client.py
> connecting to ./uds_socket
> sending b'This is the message.  It will be repeated.'
> closing socket
> Traceback (most recent call last):
>    File "client.py", line 27, in <module>
>      data = sock.recv(16)
> ConnectionResetError: [Errno 104] Connection reset by peer

I wonder if this has the same cause as the problem reported here:

   https://cygwin.com/pipermail/cygwin/2021-February/247884.html

Mark, can you check that?

Ken

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019