Groups | Search | Server Info | Login | Register


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

Re: How to get rid of client disconnected network sockets [changing tcp_keep_alive timeouts]

From Marcel Mueller <news.5.maazl@spamgourmet.org>
Newsgroups comp.os.linux.networking
Subject Re: How to get rid of client disconnected network sockets [changing tcp_keep_alive timeouts]
Date 2025-06-14 14:35 +0200
Organization MB-NET.NET for Open-News-Network e.V.
Message-ID <102jqaf$3cgik$1@gwaiyur.mb-net.net> (permalink)
References <102ebko$2pkej$1@gwaiyur.mb-net.net> <anfi+b0266n2etf-p6c4@wp.eu>

Show all headers | View raw


Am 12.06.25 um 13:24 schrieb Andrzej Adam Filip:
> AFAIR Classic recommendation is to change tcp keep_alive timeout.
> It changes when kernel checks (sends probe packets) over inactive
> tcp connection.  The default is after 2 hours (7200 seconds).
> AFAIR some people reported changing it to 10 or 15 minutes.

I played a bit around with different settings, but with only limited 
success.

The problem is primarily with excessive retransmissions. The ping 
latency becomes up to 20 seconds (!) while packet loss is quite low.
I got some improvement by significantly reducing the TX queue depth of 
the WLAN device (50 instead of 1000). It makes no sense to send a packet 
20 seconds later.

The basic problem seems to be that the transmission power is restricted 
to 15 dBm although channel 100 allows significantly higher level (26 
dBm). The router seems to be aware of that but the Intel Centrino N 6205 
device not. So link quality is highly asymmetric.
No idea whether the power limit is due to hardware restrictions or a 
driver bug. I guess the first.

However, I found a workaround for the orphaned connections. Using 
systemd-socket-proxyd I can control almost all socket options very 
fime-grained. It also starts the VM if not yet running.


Marcel

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