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
8
votes
1 answer
apache proxy to tomcat keep alive confusion
I have an apache 2.2 server infront of a tomcat 6 server. using mod_proxy_ajp on apache to proxy requests to tomcat. pretty standard setup.
If I need to disable keep-alive connections for browsers, how do i do this?
I need to do disable keep-alive…

Patrick
- 1,302
- 2
- 13
- 22
8
votes
5 answers
iPhone app running while screen locked
Here is something I am trying desperately to get to work:
I have an app that polls the GPS module in specified intervals and then sends out coords out to a server using Unix calls such as write(); It works fine when the app is active, but once the…

David
- 111
- 1
- 1
- 2
8
votes
5 answers
Keep session alive forever as stackoverflow
I need to keep the session live unless until the user clicks logout in my asp.net mvc(C#) application.
When the user closes the browser and opens again, the session should continue with the values.
I am trying to implement as in stackoverflow.
Any…

Prasad
- 58,881
- 64
- 151
- 199
8
votes
1 answer
How to configure keep-alive timeout in playframework 2
I use playframework 2.0 in production and I see a rapidly growing number of files open by the corresponding java process. I changed the default allowed number of open files for a process from 1024 to 4096, but this just delays a problem and after…

Ilya Posov
- 138
- 3
- 9
7
votes
2 answers
NSURLConnection ignores Keep-Alive timeout?
I'm converting my app to use HTTPS and would like to avoid the handshake cost as much as possible by keeping open a long-lived connection.
From reading the web and other answers on stack overflow it appears NSURLConnection should transparently keep…

ileitch
- 532
- 4
- 12
7
votes
2 answers
Enable Keep-Alive (Page Speed)
What is the keep-alive feature? How can I enable it?
Following is the output from the chrome's Page Speed plugin.
Enable Keep-Alive
The host {MYWEBSITE.COM} should enable Keep-Alive. It serves the following…

Dominicanstan
- 205
- 1
- 5
- 7
7
votes
1 answer
How to do keepalive http request with curl?
How can I request multiple pages from the same web server within the same connection?
So the client side need to extract the response for each request,of course it's the server's job to make the response in the same order as requested.
Anyone knows…

compile-fan
- 16,885
- 22
- 59
- 73
7
votes
2 answers
Keep Discord Bot online on repl.it
How do I use repl.it for my Python Discord Bot, and keep it running 24/7.
I used to use keep_alive but it stops working for some reason.
Does anyone have any suggestions?
I keep getting this error in the console:
172.18.0.1 - - [16/Feb/2019…

Harrison Copp
- 107
- 2
- 3
- 7
7
votes
0 answers
Azure Web Api - Waiting Sql Connection every 4 minutes and 30 minutes
Within a request on an ApiController, I'm tracking the duration of awaiting the Sql Connection to open.
await t.TrackDependencyAsync(async() => { await sqlConnection.OpenAsync(); return true; }, "WaitingSqlConnection");
If my request is not called…

François
- 3,164
- 25
- 58
7
votes
2 answers
Why aren't persistent connections supported by URLLib2?
After scanning the urllib2 source, it seems that connections are automatically closed even if you do specify keep-alive.
Why is this?
As it is now I just use httplib for my persistent connections... but wonder why this is disabled (or maybe just…

sbartell
- 883
- 1
- 7
- 18
7
votes
1 answer
Play framework: WebSocket connection timeout
I have a device that connects to a server (written in Scala and Play) through WebSocket.
When I turn off the device, the connection remains open. Is there a way to set a WebSocket connection keepalive timeout in Play framework to check if the client…

Mattia Micomonaco
- 230
- 1
- 12
7
votes
2 answers
Why is android HttpURLConnection not sending back FIN?
From my Android app I wanted to Post data to server and get the response back, process it then send back and get another request. Since it is continuous communication until no more response to process, I prefer to go with HttpURLConnection with…

Vishal Santharam
- 1,963
- 1
- 16
- 30
7
votes
3 answers
How to solve timeout issues caused by bad HTTP persistent connection?
I've been struggling with an HTTP timeout issue recently. After more than one month of investigation I'm quite sure that it is caused by bad HTTP persistent connections. Details are as follows:
It is an iOS app.
Most users are running iOS 8.
I'm…

an0
- 17,191
- 12
- 86
- 136
7
votes
1 answer
How to make HA Proxy keepalive
In my environment I have haproxy load balance for 2 web servers (Apache), this is my HA Proxy configuration :
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
…

user36814
- 141
- 1
- 1
- 10
7
votes
1 answer
Azure Website Connection Keep-Alive
I was using Windows Azure Website to host my website.
I want to enable Connection: Keep-Alive in my website, how to enable it for my website?
How to check whether I have successfully enabled it on my website?
How to set the timeout for the…

Kyojimaru
- 2,694
- 1
- 14
- 22