A feature of HTTP where the same connection is used for multiple requests, speeding up downloading of web pages with multiple resources.
Questions tagged [keep-alive]
892 questions
17
votes
3 answers
Is SPDY any different than http multiplexing over keep alive connections
HTTP 1.1 supports keep alive connections, connections are not closed until "Connection: close" is sent.
So, if the browser, in this case firefox has network.http.pipelining enabled and network.http.pipelining.maxrequests increased isn't the same…

codeassembly
- 1,112
- 1
- 9
- 17
16
votes
5 answers
javascript code to prevent screensaver from starting
I am completely new to javascript programming and I have a question that I didn't manage to find an answer for anywhere.
I have recently put together a simple slideshow to view the photos remotely that I host on my home computer. This by itself…

gertjan
- 843
- 1
- 8
- 16
16
votes
4 answers
How to test HTTP Keep alive is actually working
I know HTTP keep-alive is on by default in HTTP 1.1 but I want to find a way to confirm that it is actually working.
Does anyone know of a simple way to test from a web browser (EG how to make sense of wireshark). I know I need to look for multiple…

sub
- 161
- 1
- 1
- 3
16
votes
3 answers
Use HTTP Keep-Alive for server to communicate to client
Recently in an interview I was asked how I would approach an online chat client application. I went through the standard "polling" solution but was cut off because the interviewer was looking for the "HTTP 1.1 keep-alive" method. Having used HTTP…
Mike
15
votes
3 answers
GC.KeepAlive versus using
In his article about preventing multiple instances of an application, Michael Covington presents this code:
static void Main() // args are OK here, of course
{
bool ok;
m = new System.Threading.Mutex(true, "YourNameHere",…

Jim Mischel
- 131,090
- 20
- 188
- 351
15
votes
1 answer
gRPC connection: use keepAlive or idleTimeout?
Looking at gRPC Java doc - ManagedChannelBuilder, there're two options to manage the connections.
It seems idleTimeout() is the default/preferred configuration. But when I tried to search for a comparison, most of the posts are talking about…

xialin
- 7,686
- 9
- 35
- 66
15
votes
1 answer
When is a TCP connection considered idle?
I have a requirement to enable TCP keepalive on any connections and now I am struggling with the results from our test case. I think this is because I do not really understand when the first keepalive probe is sent. I read the following in the…

Jens
- 9,058
- 2
- 26
- 43
15
votes
1 answer
KeepAlive with WCF and TCP?
I have a Windows Service hosting an advanced WCF service that communicates over TCP(netTCP) with protobuf.net, some times also with certificates.
The receiveTimeout is set to infinite to never drop the connection due to inactivity. But from what I…

Banshee
- 15,376
- 38
- 128
- 219
14
votes
1 answer
Possible to enable Keep-alive with a load balancer?
I'm trying to optimize my web application using Google's Page Speed API which has highlighted the absence of "Keep-alive" in my HTTP response headers as a major page speed weakness.
In talking with my back-end devs and sys admins, they've told me…

Benjamin Knight
- 252
- 2
- 4
- 10
14
votes
3 answers
HTTP keep-alive in node.js
I am trying to set-up a HTTP client to keep the underlying connection open (keep-alive) in node.js, but it seems that the behaviour does not correspond to the docs (http://nodejs.org/api/http.html#http_class_http_agent).
I am creating a new HTTP…

quentinadam
- 3,058
- 2
- 27
- 42
14
votes
1 answer
Persistent HTTP Connection with RestSharp
I am using RestSharp to consume a REST web service and will be making a large volume of calls in a short time period.
The documentation for the API strongly recommends the use of persistent HTTP connections to do this, however I am struggling to get…

Adam Cobb
- 894
- 4
- 14
- 33
13
votes
1 answer
Under what circumstances will my browser attempt to re-use a TCP connection for multiple requests?
I am using Firefox, but I'd like to know how browsers decide this in general.
It seems that when I access the same URL twice in a short amount of time, my browser tries to re-use the TCP same connection for both requests (this is called…

Mark
- 5,286
- 5
- 42
- 73
13
votes
2 answers
WCF wsHttpBinding with http keepalive
I have a WCF client which uses a wsHttpBinding, I would like to enable http keep-alive.
I'm hoping I can turn this on by just changing the client config... I've found plenty of descriptions of how to turn on keep-alives for a basicHttp binding, but…

Nathan
- 6,095
- 2
- 35
- 61
13
votes
2 answers
"Connection: Keep-Alive" in server response
I'm trying to establish a HTTP persistent connection from a Silverlight application to a PHP page (ie without creating a new TCP connection for each HTTP request) hosted by an Apache server.
To this end, I need the webserver to send its HTTP…

ZenithM
- 141
- 1
- 1
- 4
13
votes
2 answers
Advantage of using HAProxy AND Keepalived vs just Keepalived
As per the (verbose) topic, are there any advantages over using a Keepalived & HAProxy as an HA webserver loadbalancer vs a pure keepalived solution?

Werner
- 791
- 1
- 6
- 23