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
0
votes
2 answers
advantages of persistent mysql connections
On my website, when an user opens his profile or any other page, (almost all pages use data from mysql), my website makes around 50 connections to mysql in loading the page. This is the case on my development server, running elementary OS.
When I…

Abhishek Goyal
- 867
- 1
- 7
- 21
0
votes
1 answer
Shall I use persistent connections to upload files in intranet?
In intranet, the network is good
Server A will send lots of files to server B by http service at the same time
Http protocol is HTTP 1.1, which uses persistent connection by default
[update] Use a connection pool to hold 100 connections
[update]…

Freewind
- 193,756
- 157
- 432
- 708
0
votes
1 answer
how to make persistent connections to memcached server using xmemcached or spymemcached
How can we use persistent connections to memcached servers using xmemcached or spymemcached?
I am presently using xmemcached.
MemcachedClientBuilder builder = new XMemcachedClientBuilder(
AddrUtil.getAddresses(
"127.0.0.1:11211…

Shades88
- 7,934
- 22
- 88
- 130
0
votes
1 answer
PHP command line persistent connections
I have a PHP script which works perfectly via Apache called through a browser, but the same code called on command line seems to drop the database connection after every call.
So for instance in an included file I have:
$pdo = new PDO('mysql:host='…

dan360
- 361
- 2
- 16
0
votes
0 answers
Cannot see MySQL database connection made inside Node JS Server using SHOW PROCESSLIST;
I am running a Node JS + Socket.io server which makes a database connection with MySQL Server.
I have written the following code at the global level( i.e. not inside any of the functions )
// All this code is at Global level...
var mysql =…

Manu
- 901
- 1
- 8
- 28
0
votes
2 answers
How nodejs can maintain multiple concurrent connections?
I was reading a lot about nodejs but still not clear about following :
With TCP protocol client and server agree on one port and then can maintain a connection. Server knows IP address of client and hence can send back messages. If we use nodejs…

anand
- 11,071
- 28
- 101
- 159
0
votes
1 answer
Overcoming max persistent connections by using both root domain and www?
I've read about overcoming the max persistent connections of a browser by using various subdomains and also by using various ports.
Do browsers treat example.com and www.example.com as different hosts? This would obviously be the quick win for many…

Harry B
- 2,864
- 1
- 24
- 44
0
votes
0 answers
Limiting Maximum Number of Connections in proxy server
I am attempting to implement a proxy server and a proxy client in C (separately yes!). So in this scenario, we have a client, a proxy client, a proxy server and a server.
The proxy client accepts a request for a specific host (server) and port…

sue
- 1
- 1
0
votes
0 answers
Accessing socket service using persistent socket
I have a tcp socket service MyServ running on the background (using Java, doesn't really matter though), and a web server with php that accesses MyServ using persistent socket (pfsockopen).
The problem is, if one php request stopped for whatever…

user696495
- 139
- 1
- 6
0
votes
1 answer
Netty OrderedMemoryAwareThreadPoolExecutor not creating multiple threads
I use Netty for a multithreaded TCP server and a single client persistent connection.
The client sends many binary messages (10000 in my use case) and is supposed to receive an answer for each message. I added an OrderedMemoryAwareThreadPoolExecutor…

Slava
- 3
- 2
0
votes
1 answer
Implementing a protocol exchanging four messages within a single persistent connection
I have a complete implementation of a protocol where four messages are exchanged between the client (a native Android application) and the server (a standalone Java server) in the following way using a persistent connection through Java…

apaspai
- 1
- 1
0
votes
1 answer
Restlet: persistent connection
I am trying to create a Restlet server that will handle long sessions with its clients. So after handling the first request i want to be able to keep the current http connection open and save it in a list of connections. Is this possible?
I have…

tk66
- 274
- 7
- 20
0
votes
1 answer
HTTP, Persistent Connection always used?
I can understand, that persistent Connections is used in combination with a HTML-Webobject. But as far as I have seen, persistent Connections are used with almost every Request. Requests for Pictures, Javascript, HTML... and so on. Can you explain…

user1826831
- 735
- 3
- 9
- 17
0
votes
0 answers
Create persistent connection between android and Apache Server
i need to create a communication between an Android phone (Java), and a server running apache.
What i'm going to do, requires a lot of messages going and comming, and i don't know exacly "what to search", that will do this job.
Maybe the name is…

Ivan Seidel
- 2,394
- 5
- 32
- 49
0
votes
2 answers
HttpWebRequest AllowReadStreamBuffering property not honored on cellular network?
I'm writing an app which uses persistent connections over http - that is, the web server never "finishes" writing to the response stream, and the client app reads data from the response stream as it comes in.
I wrote some .NET 3.5 desktop/winforms…

PhilChuang
- 2,556
- 1
- 23
- 29