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
1
vote
4 answers
Persist an FTP connection PHP resource across AJAX calls
I have a multi-user PHP web application that can interact with an FTP server via AJAX. The application allows the user to browse an FTP site. Javascript makes an AJAX call which communicates with a server-script that returns a list of files and…

Chad Johnson
- 21,215
- 34
- 109
- 207
1
vote
0 answers
SignalR Persistent connection for android?
I successfully implemented Hub connection in signalR but i want to implement persistent connection for my application for continues polling from server. The problem is i didn't find anything about persistent connection in android signalr sdk library…

shyam002
- 237
- 1
- 5
- 19
1
vote
1 answer
Py 2.7 arch: How to persistent HTTP/S with multiple servers and not gather data to send multiple times?
This is kind of a complicated question, so I'll do my best to be plain in my explanation and not give too many unnecessary details.
I developed a python script for work last year. It grabs basic system data and sends it to an HTTP/S server, which…

John
- 976
- 1
- 15
- 21
1
vote
1 answer
Django CONN_MAX_AGE option doesn't open persistent connection
I set DATABASE setting like below and run Django App.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.oracle',
'NAME': 'orcl',
'USER': 'smkim',
…

SangminKim
- 8,358
- 14
- 69
- 125
1
vote
1 answer
Android HttpUrlConnection w Persistent Connection
Scenario
Users have to login to the server with this app. Later in the app we need to check their login status against the server. We used to do this by keeping track of the last used HttpClient. Recently we switched to HttpUrlConnection but the…

Jacksonkr
- 31,583
- 39
- 180
- 284
1
vote
0 answers
Persistent Connection with OnReceived response
I'm just starting to learn about "Persistant Connections" in SignalR and like for instance that I'm able to send out pre-serialized json.
But this method of sending from the client, receiving serverside and then send back any respons again is a bit…

Andreas Zita
- 7,232
- 6
- 54
- 115
1
vote
1 answer
Persistent Connection on a multiprocessed and multithreaded C server
Third time I try to ask this question, maybe this time I'll be able to explain my problem better.
I have a multiprocess server with each process doing the accept() (avoiding the Thundering Herd problem with file locking, don't worry). Each process…

TheNobleSix
- 101
- 10
1
vote
0 answers
PDO::ATTR_PERSISTENT utf 8 encoding
I set PDO::ATTR_PERSISTENT => true, but show my text with other encoding!
همراه سوران باشید در
Please help me out
// This is not helpful : `PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',`
// my default encoding in phpmyadmin…

Erfan Safarpoor
- 5,109
- 4
- 23
- 27
1
vote
0 answers
Persistent connection not working, opens new connection on every request
I am trying to implement a persistent http server in java, being new in socket programming, I am unaware of the complications.
But run function of ThreadHandler class, it stucks forever and keep waiting, but at the same time if new request comes a…

suman shadow
- 793
- 1
- 5
- 6
1
vote
1 answer
MySql processes seems to get stuck when using PDO persistent connection
I have an issue concerning PDO persistent connection. Now this may not be an actual problem, but I can't seem to find any post addressing this behavior.
I'm using the good old PDO in a persistent connection mode for my web app. Now I'm creating a…

Daniel
- 2,288
- 1
- 14
- 22
1
vote
1 answer
Should I use persistent connection on my webservice?
I have an WebService coded in asp net mvc4 that runs in a cloud server.
This cloud server have an IIS 8 and a mysql server. This server is dedicated to this application.
I have a growing number of request to this server.
Each request requires a…

Renan Lopes
- 37
- 5
1
vote
1 answer
phpredis persistent connect with nginx + PHP-FPM
I have classical server configuration schema with Nginx + PHP-FPM. Most of pages on my site contain data that saved into redis. Thus it is too many indirect (through php-fpm) lite requests to redis from many independent users. I use phpredis PHP…

Ivan Velichko
- 6,348
- 6
- 44
- 90
1
vote
2 answers
Server sent event with Jersey: EventOutput is not closed after client drops
I am using jersey to implement a SSE scenario.
The server keeps connections alive. And push data to clients periodically.
In my scenario, there is a connection limit, only a certain number of clients can subscribe to the server at the same time.
So…

Cui Pengfei 崔鹏飞
- 8,017
- 6
- 46
- 87
1
vote
1 answer
persistent database connection
I'm making a small program in java that is going to run on an embedded device.
the purpose of it is to store some values (let's say temperature) in a database located in a cloud.
Scenario 1: data gets stored every possible cycle…

FoiaZoig
- 13
- 3
1
vote
1 answer
PHP NGINX PHP-FPM, forking needed / possible?
I'm using a setup including PHP (5.5), NGINX (1.1.19) and PHP-FPM, with MySQL (5.5.34) as Database, and many, many stored procedures.
I dont want to get too far into the reason for why I'm using stored procedures, but as far as I know it's a good…

user169099
- 137
- 2
- 7