Re: [PATCH net v2 0/8] net: fixes for requests completing on a socket that no longer listens
From: Hyunwoo Kim
Date: Mon Aug 24 2026 - 09:06:20 EST
On Mon, Aug 24, 2026 at 09:30:44AM +0100, David Laight wrote:
> On Mon, 24 Aug 2026 12:32:44 +0900
> Hyunwoo Kim <imv4bel@xxxxxxxxx> wrote:
>
> > connect(AF_UNSPEC) and listen() move a socket back and forth between
> > listener and active session. IPV6_ADDRFORM on top of that turns an
> > AF_INET6 socket into an AF_INET one.
>
> Is it even valid to call connect() after listen()?
More precisely, it is connect(AF_UNSPEC), which is a disconnect. This
is a valid operation.
Best regards,
Hyunwoo Kim