Questions tagged [keep-alive]

A feature of HTTP where the same connection is used for multiple requests, speeding up downloading of web pages with multiple resources.

834 questions
15
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
  • 813
  • 7
  • 16
15
votes
3 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
  • 151
  • 1
  • 1
  • 3
15
votes
1 answer

Overhead of Idle WebSockets

Say I have an websocket that may receive an event at any time, but is mostly idle, how much bandwidth will be consumed after the initial connection in order to keep it alive? For what it's worth, the server is NodeJS using ws, and the client is…
Jacob
  • 1,204
  • 1
  • 12
  • 25
14
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
  • 8,115
  • 1
  • 21
  • 37
14
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,434
  • 36
  • 111
  • 198
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
  • 856
  • 3
  • 14
  • 33
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
12
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
  • 222
  • 2
  • 3
  • 10
12
votes
1 answer

Keep XMPP connection (using asmack) alive on Android

I'm developing an application that receives push notifications via XMPP ( I know C2DM, but it has some limitations and I can't use because of it ), the problem is the connection that after some time is garbage collected and I can't send push…
danilodeveloper
  • 3,671
  • 2
  • 33
  • 54
12
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
  • 4,584
  • 5
  • 35
  • 61
12
votes
11 answers

C# Console Application - Keep it running

I am about to develop a console application that will be required to continually run and carry out work at specific times. My question is what is are best methods or practices to keep your application alive? My thought were: A loop that never…
None
12
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
  • 5,729
  • 2
  • 29
  • 60
12
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
  • 2,868
  • 2
  • 24
  • 38
12
votes
1 answer

AFNetworking/NSURLConnection HTTPS keep alive shows strange behaviour

We're currently dealing with a performance issues in our app, and we believe that some of these issues might be related to the fact that the app and the underlying AFNetworking network stack seems to ignore keep-alive on HTTP 1.1. We got information…
WarrenFaith
  • 56,228
  • 24
  • 130
  • 145
11
votes
1 answer

How to use tcp_keepalives settings in Postgresql?

Postgresql has 3 keepalive settings for managing dropped connections (in postgresql.conf): tcp_keepalives_count tcp_keepalives_idle tcp_keepalives_interval By default these are 0. The behavior I would like is for Postgresql to drop client…
Paul Lefebvre
  • 5,958
  • 3
  • 26
  • 36
1 2
3
55 56