Questions tagged [keepalive]
121 questions
0
votes
2 answers
Keeping connections open
I'm new to cURL and I'm trying to do something reasonably simple. I want to login to a server and download data at regular intervals over a few hours.
First, I login to the server - which I've managed by posting the login values like so:
curl -v -c…

Gary
- 3
- 1
0
votes
1 answer
Apache Timeout/KeepAlive
I run several apache web servers on CentOS 5.x and they all seem to have the same problem. It is typically fast but at times the browser will just sit there waiting forever and it never fails or goes through. Typically if you open a new tab and try…
0
votes
1 answer
Is this normal? Multiple httpd process
I'm testing a new Server. This isnt really a peak time for my server (2pm), but still its running a bit slow, I was checking the ESTABLISHED connections using the following command:
# netstat -ntu | grep :80 | awk '{print $5}' | cut -d: -f1 | sort |…

ilcreatore
- 21
- 1
- 3
0
votes
1 answer
how do i turn on the Keep Alive and HTTP Compression in Apache server 2.2( centos)
how do I turn on the
KeepAlive and HTTP Compression
in Apache server 2.2(centos)

gourav
- 1
- 1
0
votes
1 answer
Load Balanced Apache keeps browser/user on same server until restart
So we have a load balancer setup to pass off our http connections to an array of six servers .. I have disabled KeepAlive and for some reason, only after I restart apache, does my additional connections/requests get routed to a different server…
0
votes
3 answers
How to make Apache keep the connection after the request is finished?
So that subsequent request can still use the current connection.

apache
- 3,227
- 7
- 27
- 25
0
votes
0 answers
Tracing / Solving a sudden spike in Apache2
My server is running on Ubuntu20.04, a pure LAMP stack with Apache 2.4.41.
In the last few weeks, there was a total of 2 occurrence where Apache2 was not responsive (users can't load our website), and we can't solve why, but it started working again…

Patrick Teng
- 1
- 1
0
votes
0 answers
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
- 1
- 1
0
votes
0 answers
NGINX proxy_pass Keep-Alive without upstream directives
I have an nginx configured to dynamically proxy to another network, say ourdomain.com/legacy/otherdomain/443/examplepath?examplearg=examplevalue will be mapped to otherdomain.legacydomain.com:443/examplepath?examplearg=examplevalue and…
0
votes
2 answers
apache2 server keepalivetimeout is getting ignored and client always gets close_notify at consistent time
My client requires the server connection to be persistent for long durations to support old software. I have tried changing the Apache2 KeepAliveTimeout to 0, 5, 30, 100 for testing, but the connection is always closed at ~20seconds. This is how the…

lazy_maybe
- 3
- 1
0
votes
0 answers
configure inactivity timeout while handling keepalive probes
I am developing a TCP echo server using python and the socket library.
I'd like to have a timeout configured for each incoming connection. So to drop and close them if there is inactivity for a SOCK_TIMEOUT value.
This is achieve with the specific…

rebatoma
- 101
- 2
0
votes
1 answer
Nginx upstream server - client broken connection not timeouting
I have a long poll clients that connect to nginx and upstream to kestrel dot net.
Clients have keepalive set that after 2 minutes connection breaks. On nginx side i have listen 0.0.0.0:xxx ssl so_keepalive=5m:10:5; So roughly 6 minutes
I pull the…

Lonko
- 115
- 1
- 5
0
votes
1 answer
keepalived - "notifiy_master"/ "notify_backup" does not start/stop application
I want to start/stop a freeradius depending on the master (start) or the backup (stop) state of the keepalived instance. The freeradius is listening for accounting messages on the shared virtual ip.
I tried to reach this with notify_master and…

ryudo
- 1
- 1
0
votes
1 answer
Apache - Loading is very slow after inactivity. Most states of connections are in K - KeepAlive
I enabled the apache status module, and saw that most of the connections on the apache scoreboard are showing a "K" value.
On my server, when I enable KeepAlive, during inactivity it takes a while to access the pages, then it gets fast.
I checked…
0
votes
1 answer
How to tweak nginx keep-alive settings when you can't guarantee routing to the same host?
I have a scenario where a number of servers are running an nginx instance. For what it's worth, these are mostly just proxied requests. These hosts all sit behind a hardware load balancer and it's not necessarily possible (or desirable, for various…

a p
- 121
- 1
- 8