Questions tagged [keepalive]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13 votes
4 answers
40k views

Why would you ever set MaxKeepAliveRequests to anything but unlimited?

Apache's KeepAliveTimeout exists to close a keep-alive connection if a new request is not issued within a given period of time. Provided the user does not close his browser/tab, this timeout (usually ...
Jonathon Reinhart's user avatar
11 votes
3 answers
107k views

How do I keep an RDP session alive from the client side?

I'm on a Windows 7 workstation and have to connect to an offsite virtualized Windows 2008 server through RDP to use an app for work. After about 15 minutes of idle time the whole thing freezes up and ...
matt's user avatar
  • 1,509
3 votes
3 answers
2k views

Does LFTP support keepalive for FTP/SFTP?

In the documentation it's not clear whether lftp support keepalive for FTP and SFTP protocols. Does someone know the answer?
Gill Bates's user avatar
3 votes
1 answer
3k views

Keep alive, ESTABLISHED and TIME_WAIT semantics

When I use the following command netstat -ant | grep :9111 | awk '{print $6}' | sort | uniq -c | sort -n I get the following 1 LAST_ACK 1 LISTEN 2 SYN_RECV 7 FIN_WAIT1 51 ESTABLISHED ...
Justin Wood's user avatar
2 votes
1 answer
315 views

Terminated HTTP/2 connections on macOS in Inea ISP

We’ve had a discussion about my issue on Reddit, but I wanted to try here too. I have a symmetric 300 Mbps fiber connection at home and sometime in September/October 2021 I’ve started seeing weird ...
Najki's user avatar
  • 71
2 votes
0 answers
555 views

Best way to avoid HDD head parking under OSX via bash script

After replacing the optical drive of my MacBook Pro (mid 2012) with a SATA-II HDD, I'm having trouble with the HDD's annoying head parking after short intervals of usage. Since I'm using the MacBook ...
Christoph90's user avatar
2 votes
1 answer
4k views

How to Maintain an Inactive Tcp Connection?

If a TCP server establishes a TCP connection with a TCP client and the TCP client never sends any packet to the server. I roughly know firewalls near the TCP server may send an RST to it. Or there is ...
misteryes's user avatar
  • 3,005
1 vote
1 answer
411 views

How can I fire many HTTP requests using a single TCP connection?

I would like to know if there is a way to open a single TCP connection to a server and request several pages over HTTP on that connection. Is there a way to do this using common Linux client tools?
Arun's user avatar
  • 174
1 vote
1 answer
251 views

Move from keepalived to HAProxy

I have four web server under two keepalived load balance server, so I can be sure that the active keepalived server will load balance the traffic on my four web servers, and when it fails the passive ...
Edik Mkoyan's user avatar
1 vote
0 answers
457 views

Keepalived not routing certain tcp packets

I am trying to implement a NAT based keepalived load balancer for our outgoing squid proxies. I have set up 2 keepalived VMs which share a VIP: [root@keepalived-01 ~]# ip a 1: lo: <LOOPBACK,UP,...
Ishan Datt's user avatar
1 vote
0 answers
61 views

keepalived IP filter?

I am using keepalived to load-balance connections to 4 servers. Is there any way to route all non-logged-in users to one server and all logged-in users to the other 3 servers? I can update a list/...
TeAmEr's user avatar
  • 5,587
0 votes
2 answers
820 views

how disable resume hard disk from Sleep on Shut Down

I'm using Windows 7 , I set my drive to sleep after 10 minutes and it works but, when I shut down windows my hard drive resume from sleep. Why? It shouldn't keep hard drive sleep and shut down the PC ?...
Roberto's user avatar
0 votes
1 answer
4k views

ClientAliveInterval / ClientAliveCountMax not working as expected

I added the following two lines to my /etc/ssh/sshd_config file and did service ssh restart after adding them: ClientAliveInterval 2 ClientAliveCountMax 5 In my /etc/ssh/ssh_config file I have this: ...
neubert's user avatar
  • 7,122
0 votes
1 answer
2k views

Keepalived multiple condition TCP_CHECK

I have few web servers under two keepalived servers, and to check the health of a real web server I use this fragment of keepalived configuration TCP_CHECK # healthchecker : ...
Edik Mkoyan's user avatar
0 votes
1 answer
5k views

Closing MacBook lid to sleep with Amphetamine (Monterey)

Amphetamine is a fairly popular Mac program for keeping Macs awake (not sleeping). The program is also used to use MacBooks in "clamshell" mode; using the MacBook while closed with ...
hobbes3's user avatar
  • 1,013
0 votes
1 answer
852 views

Keepalive packets - what is a reasonable setting for KeepAliveTime?

The parameter controls how frequently TCP tries to verify that an idle connection is still intact by sending a keepalive packet. If the remote computer is still reachable and functioning, the remote ...
Jim's user avatar
  • 543
0 votes
0 answers
1k views

How to enable Windows 10 TCP keepalive?

As per this answer TCP keepalive can be enabled by three registry values. However, setting KeepAliveInterval=KeepAliveInterval=30000 miliseconds and TCPMaxDataRetransmissions=5 definitely does not ...
Pyotr Baykalov's user avatar
0 votes
1 answer
6k views

change keeplived process user from root to keepalived(or other)

I want to know how to change the process name root to another one? when using the following command: ps aux | grep keepalived root 26982 0.0 0.0 19344 1560 ? Ss 11:52 0:00 /usr/...
Paul0000's user avatar
0 votes
4 answers
3k views

Keep SSH connection alive when moving large folder

Context : I have a web server (my hosting provider is OVH). I have a large folder with many files in many sub-directories (100k+ files). I need to move this directory from one place to anuther on ...
TooLiPHoNe.NeT's user avatar
0 votes
0 answers
2k views

FFmpeg TCP point to point streaming with tee muxer - handle network disconnections

we are using FFmpeg for live streaming between two computers (point to point streaming) using TCP. The streaming works fine and we wanted to add support for two features: Save the stream locally in ...
Shachar Levy's user avatar
0 votes
0 answers
422 views

Binding SOCKS proxy to keepalive virtual ip

I am creating a SOCKS proxy using OpenSSH dynamic port forwarding on an ssh-server in a keepalive cluster containing 3 machines. The virtual ip of this cluster is 1.1.1.4 The master node of the ...
Joe Sinfield's user avatar
0 votes
0 answers
3k views

Is there a way to completely disable TCP keepalive?

I'm trying to disable TCP Keepalive in a linux machine. If I set the three keepalive parameters to 0, the machine refuses connections. sysctl net.ipv4.tcp_keepalive_time=0 sysctl net.ipv4....
Arapajoe's user avatar
-5 votes
2 answers
3k views

Is there a way to pause/resume particular TCP connection?

I'm playing online game that matches me against random players. I found out that when I unplug my Ethernet cable, I have a minute to decide do I want this match to count. If things go wrong, I just ...
Sergei's user avatar
  • 131