Hi Joao

On Sat, Oct 14, 2023 at 5:18 AM Joao Machado <jocrismach...@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