Questions tagged [keepalive]

120 questions
50
votes
4 answers

How do I make cURL use keepalive from the command line?

I'm trying to verify that HTTP persistent connections are being used during communication with a Tomcat webserver I've got running. Currently, I can retrieve a resource on my server from a browser (e.g. Chrome) and verify using netstat that the…
Rob Hruska
  • 673
  • 1
  • 5
  • 10
29
votes
3 answers

What is the IIS7 default keepalive time?

What is the IIS7 default time for HTTP keepAlive?
SDReyes
  • 643
  • 2
  • 8
  • 15
27
votes
3 answers

Should I activate keepAlive in Apache2?

In any default installation, Apache 2 comes with keepAlive off, but looking at another server, the keepAlive module was turned on. So, how do I know if keepAlive is right for me? Where can I find some good examples about configure this?
Gabriel Sosa
  • 1,200
  • 1
  • 11
  • 13
23
votes
3 answers

nginx connection timeout & client closed connection issue

I have this nginx server running on AWS & it was working all fine until recently when couple of users started complaining about the website not opening until they made some 10 attempts to access it. I never was able to repro the issue from my side.…
Nitish Dhar
  • 331
  • 1
  • 2
  • 5
22
votes
2 answers

How to test keep-alive is working on client end

What are some different ways/tools to verify that keep-alive is working on the server from the client's end?
Ron Garrity
  • 373
  • 1
  • 3
  • 5
21
votes
10 answers

keep ssh connection alive and persistant while switching network interface connections

Scenario: At my desk with laptop plugged in to ethernet and connected to remote server over SSH Want to move to other side of office with laptop and change to WiFi without interrupting SSH connection I've tried: connecting to WiFi first then…
Sean
  • 373
  • 1
  • 3
  • 7
21
votes
2 answers

What is the difference between keepalive and heartbeat?

I want to structure a high available server cluster . Now I want to know detail about keepalive and heartbeat, what is the difference between both, and How to choice one.
aboutstudy
  • 957
  • 3
  • 10
  • 10
15
votes
1 answer

Should `keepalive_timeout` be removed from Nginx config?

Which is the better configuration/optimization: to explicitly limit the keepalive_timeout or to allow Nginx to kill keepalive connections on its own? I have seen two conflicting recommendations regarding the keepalive_timeout directive for Nginx.…
Bryson
  • 263
  • 1
  • 2
  • 9
13
votes
1 answer

How to adjust nginx keepalive_timeout?

I am using nginx along with php-fpm to server a busy mysql-based site. Currently I am using keepalive_timeout = 5, however I have no clear idea about how to optimally adjust it. So appreciate your hints.
alfish
  • 3,027
  • 15
  • 45
  • 68
11
votes
1 answer

Haproxy - timeout http-request vs timeout http-keep-alive vs timeout server

I'm trying to wrap my head around how the haproxy options timeout http-request timeout http-keep-alive timeout server interact with each other. I'm running an Apache website on two app servers living behind a haproxy…
Mike Levy
  • 245
  • 1
  • 3
  • 7
11
votes
1 answer

TCP Keepalive and firewall killing idle sessions

In a customer site, the network team added a firewall between the client and the server. This is causing idle connections to get disconnected after about 40 minutes of idle time. The network people say that the firewall doesn't have any idle…
Carlos A. Ibarra
  • 211
  • 1
  • 2
  • 5
9
votes
2 answers

Impact of Connection Close vs Keep-alive

I'm configuring our servers, and due to the nature of our load balancer, we can't send connection keep-alive headers. I'm trying to determine the impact of sending these headers to both the end-user and the server. Will either one notice anything?
Willemk
  • 117
  • 1
  • 2
  • 6
8
votes
3 answers

How to disable keepalive in curl

I'm trying to figure out how to consistently turn off keepalive across various client machines which are issuing HTTP requests via curl. This is my target server: - Ubuntu 18.04.2 LTS - 4.15.0-47-generic - HA-Proxy version 1.8.19-1ppa1~bionic…
cherouvim
  • 744
  • 3
  • 18
  • 37
8
votes
2 answers

Keep-alive options not working on Linux for an outgoing connection

Does anyone know if Linux supports keep-alive socket options on an outgoing connection? I made an outgoing connection with keep-alive options but netstat --timers shows off (I'm assuming timers are off): tcp 0 0 localhost.localdomain:44307…
James Hartig
  • 131
  • 1
  • 1
  • 5
7
votes
2 answers

Apache - keep-alive or not keep-alive?

According to Methods and Best Practices for High Performance eCommerce with the Magento Enterprise Edition (registration required) keep alive should be off (for high traffic sites) mod_qos can also disable keep-alive support when the server if…
Cesar
  • 204
  • 1
  • 3
  • 6
1
2 3 4 5 6 7 8