Questions tagged [keep-alive]
29 questions
12
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
- 255
8
votes
3 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
- 205
6
votes
1 answer
What's the difference between Nginx 'keepalive_time' and 'keepalive_timeout'?
In official Nginx docs a new directive added since v1.19.10 named keepalive_time 1h:
Nginx keepalive_time Doc
Limits the maximum time during which requests can be processed through one keep-alive connection. After this time is reached, the…
Mohamad Reza
- 61
- 1
- 1
- 2
5
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,529
- 13
- 27
- 32
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
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
2
votes
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
- 123
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
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
- 205
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
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
- 68
- 2
- 9
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
votes
0 answers
AWS ALB and HAProxy Keep-Alive header
Has any one come across this behavior?
AWS ALB is sending traffic to HaProxy.
HaProxy sets keep-alive header to 29 seconds.
Client connected to ALB does not see this header.
It can only see "Connection: keep-alive" header.
Basically, ALB is…
Sameer Naik
- 228
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
- 299
1
vote
1 answer
Why does Amazon recommends reading 'all data' as soon as possible during S3 download?
While reading up official documentation on Amazon S3 Java SDK, I found an interesting note:
Your network connection remains open until you read all of the data or close the input stream. We recommend that you read the content of the stream as…
Juzer Ali
- 179