HTTP persistent connection, also called HTTP keep-alive, or HTTP connection reuse, is the idea of using a single TCP connection to send and receive multiple HTTP requests/responses, as opposed to opening a new connection for every single request/response pair. The newer HTTP/2 protocol uses the same idea and takes it further to allow multiple concurrent requests/responses to be multiplexed over a single connection.
Questions tagged [persistent-connection]
153 questions
3
votes
1 answer
Push Messages from Azure application to MonoTouch (iPhone) application without Apple Push Notifications
I'm currently designing an application for iOS (using MonoTouch) that will have a server component running on Windows Azure. The application will essentially be a chat type application where users will generate messages within their clients and send…

John
- 5,452
- 8
- 37
- 37
3
votes
1 answer
What are the purpose and benefits of using persistent connection in mysql?
According to php manual:
Persistent connections are not closed at the end of the script, but are cached and re-used when another script requests a connection using the same credentials. The persistent connection cache allows you to avoid the…

waqas
- 91
- 8
3
votes
2 answers
php and persistent HTTP connections
There is any way you can use HTTP persistent connections between requests ?
I don't see the CURL extensions having a way to create a pool of connections that's used by all requests as there are in other extensions for mysql, redis, pg.
From what I…

silviu
- 179
- 3
- 10
3
votes
1 answer
Does yii2 have persistent connection options?
I can't find documentation about Yii2 persistent connection.
I have problems with Yii2 behavior. It always opens the connection and closes it after executing the query. I think creating a persistent connection is the answer to my problems.
How to do…

rico
- 63
- 1
- 7
3
votes
1 answer
How to disable keepalive in NSURLConnection?
Is there any way to force NSURLConnection to not reuse the current persistent connection but to create a new one ?
I am trying to defend myself from this known iOS8 keep-alive bug
If iOS 8 receives a HTTP response with a Keep-Alive header, it keeps…

Durai Amuthan.H
- 31,670
- 10
- 160
- 241
3
votes
1 answer
Is it possible to stop a service with android:persistent="true"
I am looking to create a system service while using system permissions. The service should be bounded to an activity and fits the following requirements
Service will not be killed by the system.
When requested, service can be stopped.
In order to…

Shulmant
- 31
- 2
3
votes
1 answer
Need help with setting up comet code
Does anyone know off a way or maybe think its possible to connect Node.js with Nginx http push module to maintain a persistent connection between client and browser.
I am new to comet so just don't understand the publishing etc maybe someone can…

Saif Bechan
- 16,551
- 23
- 83
- 125
3
votes
1 answer
MySQL Persistent Connections
I have 10 application servers and 1 mysql database. I would like to do connection pooling for mysql, but simply enabling mysql_pconnect() will not work since it'll cause some servers to have more connections than others.
What's the best solution for…

Ian
- 24,116
- 22
- 58
- 96
3
votes
0 answers
PDO with a pool of reusable connections
I've created a class (called DBPDO) that extends the standard PDO class (class DBPDO extends PDO {}) in order to have all the methods and properties that come with PDO with the addition of more control on the queries (ie. profiling when developing,…

tobia.zanarella
- 1,246
- 1
- 17
- 25
3
votes
1 answer
Java SSLSocket won't stay alive (HTTPS Persistent connection needed)
I have written a Client-Server program using java Sockets and it works just fine. Now I'm trying to move on to HTTPS for communicating between client and server.
My code is based on java built-in Sockets (Socket and ServerSocket) and it works just…

IT FAN
- 31
- 1
3
votes
0 answers
How to kill / reload / autoreload a django server having persistent connections like SSE ?
django-admin.py runserver is running while developing. I have an open webpage connected to my sse endpoint.
Seems like using django-sse breaks to server autoreload feature, cf. this issue.
What's worse is that if I manually restart the server (Ctr+C…

Maxime R.
- 9,621
- 7
- 53
- 59
3
votes
2 answers
PHP & mysqli: What is the difference between persistent connection and interactive?
What are the differences between the following:
// Persistent connection
$mysqli->real_connect("p:" . $host, $user, $pass, $db, null, null, 0);
and
// Interactive connection
$mysqli->real_connect($host, $user, $pass, $db, null, null,…

Simon Forsberg
- 13,086
- 10
- 64
- 108
3
votes
1 answer
WCF Client App Persistent Connection to non-WCF (DataSnap) Server
What Works
I built a DataSnap web service in Delphi-XE2, which uses the TDSServer and TDSHTTPService components. Clients attach to the server (web service) and run DataSnap server methods to retrieve data. The server uses TDSLifeCycle.Session for…

James L.
- 9,384
- 5
- 38
- 77
3
votes
1 answer
Open mutliple persistent sockets to same domain?
On an apache server using the worker MPM, is it somehow possible to open up multiple persistent sockets to the same TCP address?
When I do the following:
$SocketA = pfsockopen('tcp://domain.com', 80);
$SocketB = pfsockopen('tcp://domain.com',…

thwd
- 23,956
- 8
- 74
- 108
2
votes
2 answers
CFNetwork Persistent Connection (Keep alives)
I am trying to reduce our server overheads by using persistent HTTP connections via the Apple CFNetwork framework. However there is little documentation about it. The only information I could find suggested that the framework recycles streams on…

Downie
- 193
- 1
- 13