List for cgit developers and users
 help / color / mirror / Atom feed
From: Gianni Ceccarelli <dakkar@thenautilus.net>
To: cgit@lists.zx2c4.com
Subject: Re: Truncated output when writing to a pipe using sendfile
Date: Sat, 7 May 2022 14:03:51 +0100	[thread overview]
Message-ID: <20220507140351.5206874a@nautilus> (raw)
In-Reply-To: <CALe-fqgZ2inTKF1jkwLM7a=Gm1jpUz-+s0-tas1HdgLXu5M-5A@mail.gmail.com>

On 2022-05-07 Filips R <frfilips@gmail.com> 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 - <Mobilis in mobile>
	GPG public key fingerprint = A071 E618 DD2C 5901 9574
	                             6FE2 40EA 9883 7519 3F88
	                    key id = 0x75193F88


  reply	other threads:[~2022-05-07 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07 12:49 Filips R
2022-05-07 13:03 ` Gianni Ceccarelli [this message]
2022-05-07 17:06   ` Hristo Venev
2022-05-07 17:07     ` [PATCH RESEND v2] cache: Tolerate short writes in print_slot Hristo Venev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220507140351.5206874a@nautilus \
    --to=dakkar@thenautilus.net \
    --cc=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).