X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B0EE385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1692965371; bh=418WBcQKF9igEcJ8P8KLu2/QdKz/+CL8vEaRzfEJ65Q=; h=To:CC:Subject:Date:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=sJyxQ+cd8v+yFA2DVG6CsYFyYxnxHyZp4aOCjwzDOFQM7wCNjwKPngxx+Hi8UFCbg EoVbq9+KuectwsfrE4MnJwBxFtpw5gYmJrQdUzUQWaHt/bpmPHb++ZsNCw5VwVc5TA iF2L9JdwzBthM/fggWbNNy8+HBYmU9Ka5Xgjm6qM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3EAE3858C53 X-SBRS-Extended: Low X-IronPortListener: ces-out X-IronPort-AV: E=Sophos;i="6.02,195,1688443200"; d="scan'208";a="333335057" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d6GjTyt4IkZ3njTIMizqjv3wi2ziZQefRPGWBZ8hVjLJlw5lulag5FyWLlXG0mzz6+asd4X5Z34TmzWWwJAzB0YOc2C4IKBxTCcaPU5D2vsZ8o6DBA2bgEKDBJKsrhL8r8J5BuYzjDMNVwKJ99UyOfscV6rof8MynhWv622paseYVBRxCfzYPd7M2AysGzSZgTMwYftT02fyRvFBJGboK2wgdSloYEsG+sLusGGKltJjeMbYD6/V++8G4y+KDhKAdqKNqrVRWoI+336rMRyKN+1TBDb3QNlyLI0XmVmWAefcEaNDLKcdwy7xUS9qgItyfdccvPM1cogcBwznyP2bjg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fr3abPP5IhwEQNyegBmMjzMGLoV/YwRYuN+XQwo0Ov8=; b=S+cc87Wzm4fKFNsxMzJbOPgZZh0Wb++F92FDp+EapZVN1MhwNhWFqBm+mGc76L5QpF2MKcWdL1uAozzvaUUglVkuOCRcXMcdhl2f7JMTRBZsgwghGEFiEpU9RPKtus5PLXIOyb0EIkdgby+jZ0EC8p0mISRL5SIRLMYoKe4pEhChMv8y2WgVEZ0GjJxZn4j4UR17fHlKaO6/LWoqm2HfimXs65dTHf2QPOK4UvH58ilSzpZRgPLyNpE39X3Kp4krw+oygzIOW9SfAWPIyjwRFHXEBy9ZiqOOaSrkQBPp3Cs/gb/JIyAhRuG8PMngJ9OL6PHtjqAYAxiAoNx4sTdDPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none To: "cygwin AT cygwin DOT com" CC: Corinna Vinschen Subject: RE: [EXTERNAL] Re: scp stalls on uploading in cygwin 3.5 current master. Thread-Topic: [EXTERNAL] Re: scp stalls on uploading in cygwin 3.5 current master. Thread-Index: AQHZ1juS/PjVpg8vtUumO/YZ+jANLa/5JiKAgAGPQQCAACIyAIAAE45w Date: Fri, 25 Aug 2023 12:08:46 +0000 Deferred-Delivery: Fri, 25 Aug 2023 12:08:42 +0000 Message-ID: References: <20230824060502 DOT c4798062cb19d4d35a5633ae AT nifty DOT ne DOT jp> <20230824123131 DOT 390b4471915c963425c77608 AT nifty DOT ne DOT jp> <20230825174832 DOT 9ebae8112667d5d5411cb8db AT nifty DOT ne DOT jp> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM8PR09MB7095:EE_|SJ0PR09MB10970:EE_ x-ms-office365-filtering-correlation-id: a24eb377-235c-4f63-980c-08dba5640a39 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: csEq1LFyE0aVePSzHONhswKRhlFM03pKAYWJ/xHEED2oyUAfLHjBMqzj9lEHpRhYAJPwTQTM3uHmiLM9sqWbXmN+Wvo3YuShTb1ZfBvipnZhe8dbXSBMGJpvbYAt1TqTPVTUPUkn4NBM70ADuRKiXoGSlQ4S8X94E4V1Azu+czQKvWKKHb3NC+NFasbMO9YTglHFI46UZlTR2AXlQKYlZsMUYJP8aEI2XJ0SOOBExHxq8LEszNhFze47hKzmg6AECsqPXGX73X5/xnKxRrvOCsPUPkgXPBonxuP3WSnAY8DSA6pEX+S7fwAs4qvpYBjijlJGnRy6P38yubwDP0pfMnMAXDDFI/GjSaOAKkDA269J3/2siDxEqHrtDg0IfWIbwz4zeKcaC+Ql9z06H6SiICNK9TdLtG40OlCGDd8S1fEHXQBOBiFevqe2MFqshyn4Sb8MX34YM32u36P1kBlZjsfJhxDarJQ07qZMtdR/klLGp3DGKseb4S9ubS36kGBh0vF45iEpIm695TBa+mBXgFSzQBZWEuGvFj55zTB3Suq9fc7zsYop+h//PH2w8jEdnGS7eaEujV6tM3zzF3/vCZKcaZBx5tIdzI8z6SHaAJ6XOLbtCMAzU+y3G0lXSoFn x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR09MB7095.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(1800799009)(451199024)(186009)(38070700005)(38100700002)(122000001)(6666004)(71200400001)(86362001)(498600001)(26005)(9686003)(7696005)(6506007)(4744005)(55016003)(76116006)(66556008)(66476007)(66446008)(33656002)(64756008)(66946007)(6916009)(2906002)(450100002)(52536014)(5660300002)(8936002)(8676002)(4326008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TPHw0s2RQ7HrqdOAbOk6czkIatZ3CtwIySDkBx4Kxp9Cs+Hgb41fflBOMFwJ?= =?us-ascii?Q?T5Dr+KjLHyhOUjCYKUKwUe7ZAyNUpASBf4ImI1+l/02V4q49y0RdfqnqkuNC?= =?us-ascii?Q?2AYw4ulg5C+5/NR3wCYxhK6ST8oy9jGead0JOedRtzpYNM6KuBVnL3gQKkrD?= =?us-ascii?Q?W04nQPR0wK1rbTA1MLYsU9OpWcLspXyqDdw8tsKvq0v7kAvDIIzmtyYXFT8l?= =?us-ascii?Q?fPwXdshfYnzLRm1QjTlDflgmWASyFP72Wt+yYf3Mq6qwk3KgY4b0WxTwop3R?= =?us-ascii?Q?gJoaP4/XRossx97C2gl3pnCIrpseHESDCXxnKB41zoqDDpaODAFLpKzLZ4uS?= =?us-ascii?Q?CMxoM2t/vEn9saIn90SKuw/tNnm+SE/AGSolO7g/4sjN9Ly3nPWp1gCXvt6C?= =?us-ascii?Q?dim7tJGI1inyolu+cZpGJzYb/azrJckB5X5CMkdu8GzvFjjX3OVSRdMqDTsQ?= =?us-ascii?Q?x0uGkKKN1BIPfxKrtUBzTnVBynTZg07lYRryd4tcXsKKh0oNsfTI3PGe5Uq9?= =?us-ascii?Q?l0YJlDfBrFiyfDGz2eINzy6h2SqS9JmR8Z46ho7rID/cRAKAJUuNxY2MebRs?= =?us-ascii?Q?6/CHcnxuyt6HlMj6uT4+QswogcTp/RSPrDbv47tw4HdNSZgfyzsxdcMfQcWk?= =?us-ascii?Q?MLSizh1W15gj20C1DiVUTNfsgZlmnH/EeZtadjdEQ9Is7LbIAP/dyOUwRsp5?= =?us-ascii?Q?u5qCUUk+94j6tNMLKd6ZMRwxku9KbYOFMfXP4w5uzU0v0kcB4Q60cXp4RsVa?= =?us-ascii?Q?Uv1Py8pzVtg/kZWBfe135rxsXCoOUDW/chkbEH/4Vd4rBVEvZ9qYC4WGXsfS?= =?us-ascii?Q?M3ofHPklLz+ohpIpGVOKeFfT/SI1RFY6tYBQNdt5ulpMF+w0zCnLcGJXGhww?= =?us-ascii?Q?vuEXPncD6HBa7Dztnl06PurQtcPxyf+kBF4fEMxNGTqv8jADFTl+27HWkvIl?= =?us-ascii?Q?7/lHfOxZmq+Ly+yb/T9CbgieSKolEinvanbSAN0V5KCPZF2JmL7Zo95wx3lk?= =?us-ascii?Q?q+yxUxfQku/h2cOf3v5BEwWUqjy5YuG1ULgwemic6bcY23Mu8a/5Xppe9RIZ?= =?us-ascii?Q?/ufgSKrWpEI8JvC5R25qAp1i9bh+rk7LCeI2F2i8EsDbq6HCw6z5Y/T0SoWk?= =?us-ascii?Q?BghcjKILbDd22Qmf2BYFU1QmaLlijwmbuLtOFxiwYw13Gyd6wjOMHZ9mvGMA?= =?us-ascii?Q?w1oJl1IH2abGjShlqG5jrpreb5lPueUFujx9hMC8v4vMHO76mML7uicaGVCu?= =?us-ascii?Q?RsGYH0+RauBm0AKY16PKkbjzA/Y0rHgQpoflPwObWeXu9FWUFvg8M4lF+ic2?= =?us-ascii?Q?fOSVgeQxRmtsg3i1hJ1HsTa2NA7JNXkH5jJpKCmqB/RDB6MKTsch0sClW1Wz?= =?us-ascii?Q?3o338aYvYCj7r5PPG4p61luwGw5SldN3PjRDj0T6CyNJIi17GCfSkuZ79bnR?= =?us-ascii?Q?GX1F1IdRovMsydcNQtK++FmBVQ8qPeCt62eodOYUHkfY57hxR970m8cLE84Q?= =?us-ascii?Q?g7iBPBamvKDRr1iP8TM5MntdSnEiJqhOtdy/GWR6+W5YuWmZRbTkZCZEvlQ0?= =?us-ascii?Q?ixqH+v8p4Y+7QkNmmRI=3D?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: NLC+wQVBKQXyiVNnYfWpTiaeVeYkqf9i3EVCY0lbYu1SCpK0HAv9c0wN3MQO1FjvBwKITFuUAJg1W96V/OfPv6hqDxZbWL+RcRCD64wLmTDAvQ5gLLg4U4+Hn5QxAJAbawu40m5Wrp1dxvMqfYxBaGREP7YwPkFY1URACPVNseUGIPNBCuTc63U1VnbY1HI/G2Q9Q8vFcuC1EHQEqhYaaGLsAehKqsN0y5Q6L5PVtJettuvGAbRxbP7FVnsrKOdSWrb8YCZsrn26jJ0MMm10gElQ1R+xd1dJ/huE9Nywm6ldccUQ+sf1J2JTMQkeezGaRc/ypcGJsjgRB6l5KEcTKI7unWfLCJzN4OV9IKkFLRAbr7piJdYz/KK/WYWmps2xUin75CEVorOyzeeyOcQTRtj1p+kjOK9xc8gBFV0/UtvNqQamqi17ucTMxhDePNeeNWe8Xl4KDh+mnICs4uC7w7v9hc4I9VRtzdFEyoydkOZJUrWCx7sTfLcT9DHky7AyzvmyVBtbdEeOd/wzboR6svqxbWlKJOA9aAI1DCE3xzoGwXazEDmgmNU3sPRpU1izQ4c3xKEZXUO772+0ZNzdfZxFQ0KOH1+5AnBGc8P7IpuhSjU3jCsKMhN8aO5rHaDuBqIiI+hPlu15wKToUDxiWAxkc3eGGauYz4H7PYYXwTtBhV8XXtRfO/fjeM4K78y4tl1RBJUxRMxEV4q2+hRFxJPGRELWRW67G3AsCEpyOaXptjR+D8lPFeOrjvbA8AW1Zjt+61u441Mlt3FL4Va9rxS4ZF0u89fvCqEe3LBmjmh7Fg4ZD+ZYYzKh2vQRJfogqStXmWI1/YtEDAm5h7dCVA== X-OriginatorOrg: ncbi.nlm.nih.gov X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR09MB7095.namprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a24eb377-235c-4f63-980c-08dba5640a39 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2023 12:08:48.9771 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR09MB10970 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, SPF_PASS, TXREP, T_SPF_HELO_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" > I don't have an answer to this problem yet. > > Can we use send(sock, "", 0) to reenable FD_WRITE, perhaps? Can't it just be assumed that the socket is _always_ writeable _unless_ the last send() failed? In other words, try to always send() if it did not fail before. If it did, only send() after FD_WRITE was returned in the event mask. We do that in our code and it works without any issues with any sorts of timeouts (including none). Anton Lavrentiev Contractor NIH/NLM/NCBI -- 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