Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.networking > #8550

Re: How to get rid of client disconnected network sockets

From Marcel Mueller <news.5.maazl@spamgourmet.org>
Newsgroups comp.os.linux.networking
Subject Re: How to get rid of client disconnected network sockets
Date 2025-06-14 11:56 +0200
Organization MB-NET.NET for Open-News-Network e.V.
Message-ID <102jgvr$3bor9$1@gwaiyur.mb-net.net> (permalink)
References <102ebko$2pkej$1@gwaiyur.mb-net.net> <102fi9j$2u1dt$5@dont-email.me> <684c1bca@news.ausics.net>

Show all headers | View raw


Am 13.06.25 um 14:38 schrieb Computer Nerd Kev:
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Thu, 12 Jun 2025 12:54:16 +0200, Marcel Mueller wrote:
>>> The clients 192.168.121.24 is disconnected for at least an hour, but the
>>> sockets at the server seem to stay for an infinite time.
>>
>> This to me points to a defect in the protocol, that it does not
>> periodically exchange "are you there?" packets (even, say, once every 1
>> minute or 5 minutes), just to be sure the other end is still up.
> 
> But maybe the network connection was just interrupted and it'll be
> back in a few minutes? Since my home internet via mobile broadband
> is unreliable that often happens during SSH sessions. I can come
> back in 15min and my SSH terminals are all working again after the
> signal came back (well, not always, but sometimes).

For this purpose I would recommend "screen". It keeps your ssh session 
as long as you like.

> Mosh, which
> uses UDP, handles that better though.

UDP sadly fails if a NAT router is in between. Since it cannot know when 
the connection is closed it just discards the port after a timeout w/o 
traffic, typically only a few minutes.

Back to comp.os.linux.networking | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to get rid of client disconnected network sockets Marcel Mueller <news.5.maazl@spamgourmet.org> - 2025-06-12 12:54 +0200
  Re: How to get rid of client disconnected network sockets [changing tcp_keep_alive timeouts] Andrzej Adam Filip <anfi@onet.eu> - 2025-06-12 13:24 +0200
    Re: How to get rid of client disconnected network sockets [changing tcp_keep_alive timeouts] Marcel Mueller <news.5.maazl@spamgourmet.org> - 2025-06-14 14:35 +0200
  Re: How to get rid of client disconnected network sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 21:53 +0000
    Re: How to get rid of client disconnected network sockets Computer Nerd Kev <not@telling.you.invalid> - 2025-06-13 22:38 +1000
      Re: How to get rid of client disconnected network sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 23:40 +0000
      Re: How to get rid of client disconnected network sockets Marcel Mueller <news.5.maazl@spamgourmet.org> - 2025-06-14 11:56 +0200
        Re: How to get rid of client disconnected network sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-14 23:37 +0000
        Re: How to get rid of client disconnected network sockets candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-06-18 05:30 +0000
          Re: How to get rid of client disconnected network sockets Marcel Mueller <news.5.maazl@spamgourmet.org> - 2025-06-18 10:00 +0200

csiph-web