Questions tagged [keepalive]

121 questions
7
votes
2 answers

keep-alive or not keep-alive

My company is launching a new website with potentially large waves of visitors in very short windows (estimate is around 14k visitors in a 2 minutes window). So, I'm reviewing our configuration, and my biggest problem right now is our single node…
Julien Vehent
  • 3,017
  • 19
  • 26
6
votes
2 answers

(Why) does FreeBSD 'net.inet.tcp.always_keepalive' violate RFC1122?

While working on a server application that runs on FreeBSD and uses TCP, I noticed that TCP keepalive probes get sent even though my application explicitly disables SO_KEEPALIVE on TCP sockets. According to RFC1122 Section 4.2.3.6 (TCP…
6
votes
1 answer

Enabling system wide TCP keepalives on a Windows system

Can I change/add the KeepAliveTime and related registry variables to make a Windows machine send TCP keepalive packets on an idle connection? I want to know if anyone has successfully got this working. Specifically, when the application idling on…
nik
  • 7,100
  • 2
  • 25
  • 30
6
votes
7 answers

How can I avoid heroku stopping my dyno?

I build MVP's for clients regularly. Often I deploy on Heroku so they can see if the product works and demo it to prospects and investors. Then I have an application deployed on heroku, and it works like a charm, if not for one little thing. The app…
iwein
  • 191
  • 1
  • 6
5
votes
2 answers

Apache: Force HTTP 1.1 or Persistent/KeepAlive connections for HTTP 1.0 requests

I want to force Keep Alive or Persistent connections for all HTTP requests on my Apache 2.2.3 server running on RHEL 5.8. A lot of web crawlers are using HTTP 1.0 for some reason, and I would like to either force persistent connections, or somehow…
usedTobeaMember
  • 616
  • 15
  • 25
4
votes
1 answer

Difference between keepalive in apache2.conf and in ProxyPass

I am using Apache 2.2.22 What is the difference, if there is any, between the Keepalive directive in /etc/apache2/apache2.conf # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to…
nwtnsqrd
  • 45
  • 1
  • 1
  • 5
4
votes
1 answer

Relationship between tcp state TIME_WAIT & HTTP keep-alive

What is the relationship between keep-alive on a HTTP request and a tcp socket in TIME_WAIT - should they be correlated? Furthermore, should system and web server settings be aligned e.g. server.max-keep-alive-idle = 60? According to How to reduce…
aland
  • 172
  • 1
  • 7
4
votes
1 answer

Tuning Apache KeepAlive Timeout for HTTPS

My website forces HTTPS everywhere and has an average first load time of 3-5 seconds. Thanks to caching, repeat load time is 0.8 seconds. The SSL negotiation takes 150-300ms on my server, so I want to keep each connection alive as frequently as…
4
votes
2 answers

Large keepalive_requests values are severely slowing-down Nginx

When running a bacon (43-byte transparent pixel) load test on Nginx, we have tried several keepalive_requests values (from 10 to 100,000) and the optimal value seems to be 10. Here are the server HTTP headers of this tiny reply: HTTP/1.1 200 OK …
Gil
  • 307
  • 3
  • 12
4
votes
2 answers

Trying to understand how keep-alive works

Today we encountered a problem on the server, when files/scripts took more that 3 seconds to load. The solution was simple - just increasing MaxClients to the estimated memory limit. But I am worried about scalability of that solution and it doesn't…
user1065145
  • 295
  • 4
  • 9
4
votes
1 answer

Keep-Alive and Timeout Behaviours between different browsers on Windows

Short Version Why does chrome send out keep-alive's while IE and FF don't? Long Version Initially, I thought this was a server-side issue. I've got an apache server that's a frontend proxy for a tomcat webapp. One of the pages on this app takes…
Dan R
  • 255
  • 1
  • 3
  • 13
4
votes
1 answer

How do I confirm whether a particular Apache configuration directive is set?

How do I dynamically check/list a particular Apache configuration directive? I know that this can be checked manually from httpd.conf file, but is there any other way this can be confirmed/found from a running Apache server process? For example: In…
Gnanam
  • 1,459
  • 13
  • 26
  • 32
4
votes
4 answers

What alternative is there to Nginx that supports http keep-alive between backends?

I recently asked a question about how to keep a backend connection persistent using Nginx, but found out it wasn't possible anyway, It is an HTTP/1.0 proxy without the ability for keep-alive requests yet. (As a result, backend connections are…
felace
  • 141
  • 1
  • 2
4
votes
1 answer

Pros and Cons of Keep-Alive from Web Server Side

Keep-Alive connection feature in HTTP protocol is meant to reduce TCP connection hits to web server. It should be able to improve web server performance. However, I found that some web servers deliberately disable KeepAlive feature from server…
Morgan Cheng
  • 2,114
  • 2
  • 16
  • 13
3
votes
1 answer

git push fails - permissions and ssh keep alive checked - what else?

I migrated my git server to a new server and now I try to push my data to the new one. Client: Windows, TortoiseGit Server: docker git-server The log when trying to push git.exe push --progress "originNew" master:master Counting objects: 26735,…
andymel
  • 211
  • 1
  • 2
  • 9
1
2
3
8 9