qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chardev TCP socket keep-alive


From: Marc-André Lureau
Subject: Re: chardev TCP socket keep-alive
Date: Mon, 16 Oct 2023 15:50:45 +0400

Hi Joao

On Sat, Oct 14, 2023 at 5:18 AM Joao Machado <jocrismachado@gmail.com> wrote:
>
> Can keep-alive option be added to chardev TCP socket?
> My config is the like this:
> -chardev 
> socket,id=charserial0,host=0.0.0.0,port=41234,telnet=on,server=on,wait=off
>
> The problem is that without keep-alive, if the user disconnects without 
> gracefully terminating the TCP session, the session stays open forever. In 
> this state, new sessions can't access the chardev, since the zombie TCP 
> session keeps exclusive access.
> I think TCP keep-alive option would provide a elegant solution for this 
> problem.

Default timeout seems to be after around 2h. I am not sure that will
be enough to fix this problem. Instead, maybe we should allow new
connections to preempt the existing connection.

You may want to open an issue on gitlab, so we can better track this request.

thanks

-- 
Marc-André Lureau



reply via email to

[Prev in Thread] Current Thread [Next in Thread]