public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Aris Konstantoulas <arist.kon@gmail.com>
Cc: passt-dev@passt.top, David Gibson <david@gibson.dropbear.id.au>,
	Aris Konstantoulas <aris@ariscodes.com>
Subject: Re: [PATCH] tcp: Don't fast re-transmit if only our FIN is outstanding
Date: Tue, 29 Sep 2026 13:31:53 +0200 (CEST)	[thread overview]
Message-ID: <20260929133152.680ca2ab@elisabeth> (raw)
In-Reply-To: <20260928103120.233586-1-arist.kon@gmail.com>

On Mon, 28 Sep 2026 13:31:20 +0300
Aris Konstantoulas <arist.kon@gmail.com> wrote:

> [...]
>
> Don't consider a duplicate ACK as a fast re-transmit trigger if the
> only outstanding sequence number is the FIN, and leave it to the timer.
> Fast re-transmit of data is unaffected, with or without a FIN queued
> after it.

Thanks for the investigation and for the patch, I'll review it in a bit!

Just a couple of quick (hopefully helpful) remarks for now:

> [...]
>
>     - Open question: I haven't established how a real flow first reaches
>       the state where the peer ACKs exactly up to, but not past, our FIN.

If I recall correctly, a while ago, I managed to make this happen with
a Linux kernel as peer, under memory pressure, with the receiver
updating the remaining buffer estimation right after processing a large
segment (the last data segment) that's assembled from smaller segments.

You would need a slow userspace receiver as well (maybe reading exactly
one byte after accepting the connection and then nothing else...
something like that).

In any case, I don't think it really matters to find a "natural"
reproducer of this case, I wouldn't go crazy with it, your patch looks
obviously correct to me anyway.

>	[...] This patch breaks the loop in either
>       case, but not that possible entry path. I'm happy to look into it
>       further, possibly as part of bug 125.

Wow, yes, if you could also tackle bug #125, or even a part of it, that
would be very warmly appreciated!

-- 
Stefano


      reply	other threads:[~2026-09-29 11:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 10:31 Aris Konstantoulas
2026-09-29 11:31 ` Stefano Brivio [this message]

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=20260929133152.680ca2ab@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=aris@ariscodes.com \
    --cc=arist.kon@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).