Questions tagged [keepalive]

120 questions
1
vote
1 answer

Keepalived + Haproxy performance, apache or nginx?

I have a question about Keepalived + Haproxy. At work I am assigned to deploy a redundant web server with Keepalived and Haproxy. Our setup at the moment is as follows: Apache (as load balancer) + Modsecurity (waf) ------> 3 x IIS (Webserver,…
crazyforce
  • 11
  • 3
1
vote
0 answers

How to force/fake linux eth0 in 'up' status even without cable connected?

One of my testing script is eth0 status related, when eth0 goes down(cable unplugged), the script exit, and i need to unplug and plug cable many times due to test needs. is there anyway can fake linux the eth0 still 'up' even cable is unplugged?…
K. C
  • 163
  • 1
  • 1
  • 5
1
vote
0 answers

tcpdump expression to show zero-byte ACKs?

I want to show zero-byte TCP keepalives sent and received. While this could be generally useful, in this particular case I want to prove that a change I made to the JDBC driver (adding tcpKeepAlive=true) is causing the keepalives to be sent…
Steve Kehlet
  • 1,055
  • 1
  • 10
  • 16
1
vote
1 answer

How do I know that my TCP connection is safe from the Firewalls/NAT?

Being on the Azure cloud, I found that the firewalls there drop connections between the Web server and the database quite often. Mostly when there was some inactivity, I think something between 5 and 10 minutes. So I did some research and found this…
Philip
  • 203
  • 1
  • 4
1
vote
1 answer

How do I change my ubuntu keepalive to infinity?

http://www.golinuxhub.com/2013/03/setting-up-custom-tcpip-keep-alive.html Once I connect to my development server, I don't want it to automatically disconnect unless I quit my terminal. What settings should I use?
Alex
  • 8,111
  • 24
  • 71
  • 99
1
vote
3 answers

IIS stops responding

I'm using IIS (on Windows 2003) and have placed a dummy.html in my default web site. The file is empty. I'm using wfuzz to access this file a large number of times (wfuzz does HTTP requests), with the following command: wfuzz.exe -c -z range -r…
nitramk
  • 193
  • 1
  • 2
  • 6
1
vote
1 answer

Do keepalives to socket connections exist?

Pre briefing: Although my question is broad on purpose, I am dealing with nginx connecting to php-fpm (fcgi), which is served via a local socket (/tmp/somesocket.socket). Nginx has a setting to keepalive connections to fcgi backends (…
anonymous-one
  • 958
  • 4
  • 26
  • 43
1
vote
1 answer

Is tcp_keepalive application dependant on Linux?

According to http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/index.html , the kernel keepalive function occurs at the OS level, and doesn't require an application to explicitly call it. However I also read about how an application must call it (using…
Davis
  • 13
  • 3
1
vote
2 answers

Graceful Apache restart and Keep-Alive connections

I am trying to find a way to quickly restart Apache to apply configuration changes. The goal is to: Restart without distributing currently processed requests Do this as atomically as possible, i.e. the new configuration must be applied on all new…
sagi
  • 707
  • 3
  • 9
  • 19
1
vote
2 answers

In Nginx can I set Keep-Alive dynamically depending on ssl connection?

I would like to avoid having to repeat all the virtualhost server {} blocks in nginx just to have custom ssl settings that vary slightly from plain http requests. Most ssl directives can be placed right in the main block, except one hurdle I cannot…
ck_
  • 429
  • 7
  • 19
1
vote
2 answers

Spawning HTTPD processes

Can any confirm how Apache spawns new children ? As in if I connect to a webserver (HTTP 1.0 / no keep alive) and issue a HTTP /GET I will be spawned a new HTTPD child. If then issue another HTTP /GET then a new TCP connection will be built.…
RickD
  • 145
  • 1
  • 2
  • 15
1
vote
1 answer

Is it possible to use local web.config to enable keep-alive?

Is there any way to enable keep-alive on IIS 7 in a hosted scenario? I attempted to use the answer to this SO question Where (or how) is the keep-alive setting in web.config?. I added the following after the closing…
escist
  • 123
  • 1
  • 6
1
vote
3 answers

Configuring keepalives with TOAD client communication

I have a scenario where long-idle sessions of TOADSoft client communication with the Oracle server seem to be torn down as they timeout on an intermediate state-full firewall. These sessions could be idle for multiple hours! It is not acceptable to…
nik
  • 7,040
  • 2
  • 24
  • 30
1
vote
1 answer

netstat reports ESTABLISHED connection even after I've pulled the cord

I'm experimenting with lost connections between my java application and my mysql server. The application and the server are on two different machines and I'm pulling the physical cord between the two. I'm running netstat -plunta to find out the…
1
vote
1 answer

Is it better to disable Keep-Alive in IIS 7 for high traffic web applications?

The advice below applies to Apache, but it seems generic enough to apply regardless of system. My architecture is 3 web servers behind a load balancer. My IIS servers currently have keep-alive enabled with the default connection timeout of 2…
dan
  • 426
  • 7
  • 21