[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 4/5] migration/socket: Close the listener at the end
From: |
Daniel P . Berrangé |
Subject: |
Re: [RFC PATCH 4/5] migration/socket: Close the listener at the end |
Date: |
Fri, 9 Apr 2021 10:10:18 +0100 |
User-agent: |
Mutt/2.0.5 (2021-01-21) |
On Thu, Apr 08, 2021 at 08:11:58PM +0100, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> Delay closing the listener until the cleanup hook at the end; mptcp
> needs the listener to stay open while the other paths come in.
So you're saying that when the 'accept(2)' call returns, we are only
guaranteed to have 1 single path accepted, and the other paths
will be accepted by the kernel asynchronously ? Hence we need to
keep listening, even though we're not going to call accept(2) again
ourselves ?
>
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> migration/multifd.c | 5 +++++
> migration/socket.c | 24 ++++++++++++++++++------
> 2 files changed, 23 insertions(+), 6 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [RFC PATCH 0/5] mptcp support, Dr. David Alan Gilbert (git), 2021/04/08
- [RFC PATCH 1/5] channel-socket: Only set CLOEXEC if we have space for fds, Dr. David Alan Gilbert (git), 2021/04/08
- [RFC PATCH 3/5] migration: Add cleanup hook for inwards migration, Dr. David Alan Gilbert (git), 2021/04/08
- [RFC PATCH 4/5] migration/socket: Close the listener at the end, Dr. David Alan Gilbert (git), 2021/04/08
- Re: [RFC PATCH 4/5] migration/socket: Close the listener at the end,
Daniel P . Berrangé <=
- [RFC PATCH 5/5] sockets: Support multipath TCP, Dr. David Alan Gilbert (git), 2021/04/08
- [RFC PATCH 2/5] io/net-listener: Call the notifier during finalize, Dr. David Alan Gilbert (git), 2021/04/08
- Re: [RFC PATCH 0/5] mptcp support, Daniel P . Berrangé, 2021/04/09