From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25724 invoked from network); 7 May 2022 13:04:21 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 7 May 2022 13:04:21 -0000 Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 5a18dec1; Sat, 7 May 2022 13:04:04 +0000 (UTC) Return-Path: Received: from mail.thenautilus.net (mail.thenautilus.net [5.79.87.27]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id b1cd1793 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sat, 7 May 2022 13:04:02 +0000 (UTC) Received: (qmail 25914 invoked from network); 7 May 2022 13:03:52 -0000 Received: from unknown (HELO nautilus) (dakkar@::ffff:81.2.107.215) by 0 with ESMTPA; 7 May 2022 13:03:52 -0000 Date: Sat, 7 May 2022 14:03:51 +0100 From: Gianni Ceccarelli To: cgit@lists.zx2c4.com Subject: Re: Truncated output when writing to a pipe using sendfile Message-ID: <20220507140351.5206874a@nautilus> In-Reply-To: References: X-Mailer: Claws Mail 4.0.0git461 (GTK 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" On 2022-05-07 Filips R wrote: > Looks like the sendfile call comes from cache.c:95 - > https://git.zx2c4.com/cgit/tree/cache.c?h=v1.2.3&id=55fa25adb097d2681607d8b0f51a0c393cc9af1a#n95 > > senfile(2) says that a successful call may write fewer bytes than > requested; the caller should be prepared to retry the call if there > were unsent bytes Looks like the same issue as https://www.mail-archive.com/cgit@lists.zx2c4.com/msg03158.html -- Dakkar - GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id = 0x75193F88