Questions tagged [keep-alive]
29 questions
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
7
votes
2 answers
How filter only keep-alive packet with tcpdump
I need to analyze a traffic-dump on my network to check if all the PCs have enabled tcp keep-live features.
I'm using tcpdump for that purpose.
What I need to know is if there is a possibility to filter for only the keep-alive packets.
On windows I…
enzo1959
- 195
- 1
- 1
- 8
4
votes
2 answers
Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?
TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response?
I have a set up running php-fpm behind nginx. In general, this works very well and I'm happy with it, but there are a few…
pilif
- 638
- 9
- 11
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,439
- 13
- 26
- 32
3
votes
1 answer
Configure keep alive timeout on Jetty 6.1.19
How do you set the timeout on keep alive connections to the Jetty web server (in my case v6.1.19)?
I would like to configure how long Jetty keeps connections open when a client requests keep alive. Currently it seems indefinite.
justinhj
- 213
- 1
- 3
- 8
2
votes
1 answer
Reducing HTTPS handshake by http-keepalive behind a load balancer - possible?
I have an api into which ill get quite a few requests in https. Since its restful, each time the api is sent , it requires a full ssl handshake. On enabling http-keepalive , the latency of the request is reduced greatly (first request takes same…
harveyslash
- 129
- 2
- 10
2
votes
2 answers
Configuring nginx reverse proxy to send TCP keep alive packets to server
We have IIS servers in Azure behind load balancer. Load balancer has unconfigurable timeout of 4 minutes after which inactive connection is killed.
We're trying to setup nginx as a reverse proxy to the IIS cluster described above. Everything works…
Sumrak
- 195
- 1
- 3
- 10
2
votes
1 answer
Tuning tcp_keepalive_time for Node.js leak
I'm currently having a socket leak with my Node.js application.
This bug is also posted here.
I hope to fix this soon. CLOSE_WAIT and FIN_WAIT2 seem to be the major problem.
Connections: 1662
ESTABLISHED: 238
CLOSE_WAIT: 770
FIN_WAIT1: …
Martin
- 177
- 2
- 10
2
votes
1 answer
Apache 2.2: RewriteMap, ProxyPass interpolation and Keep-Alive
I have an Apache httpd used as a SSL reverse proxy frontend for a lot of backends.
I compute the name of the backend from the path given by the user.
e.g: https://myhostname.com/myaccount translates to http://myaccount.myhostname.com
For this I use…
Julien
- 78
- 1
- 8
2
votes
1 answer
Keep-Alive header not sent from Tomcat 5.5 http connector?
We're currently using a hardware load balancer, which then goes to Apache and that then goes to Tomcat 5.5 via the AJP connector.
We've decided to dump apache for various reasons - In our current system it doesnt provide any advantage.
However when…
Codek
- 203
- 2
- 9
2
votes
1 answer
nginx: log which requests where done over the same keep-alive connection
Is there any way to create a custom log file, that allows to see which requests were handled in the same keep-alive session?
I'd like to create some logs and to estimate how often new sessions are created and what typical live times a keep alive…
gelonida
- 205
- 3
- 11
1
vote
2 answers
Is there a way to keep internet connection alive?
Im running linux and I have a task which runs only after midnight. The internet connection I use for this, goes offline if there's a period of inactivity and I want to keep the internet connection alive until midnight by some means (ex: putting it…
OverTheEdge
- 113
- 1
- 3
1
vote
2 answers
HAProxy doesn't keep-alive http connection
I've switched on the option http-keep-alive in the defaults, as well as tried it in the frontend definition.
But the Response Headers in the browser never show up keep-alive, although its there in Request Headers of the browser. Using Chrome as a…
Dragunov
- 113
- 1
- 6
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
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