Questions tagged [persistent-connection]

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.

153 questions
1
vote
2 answers

Handling thousand of persistent TCP connection with python

I need to develop an application in Python handling a few thousand of persistent TCP connection in parallel. Clients connected to the server at bootstrap and send some message (in binary format) from time to time. The server also send both in reply…
Roberto
  • 1,281
  • 3
  • 16
  • 23
1
vote
1 answer

Is there any way to preserve message order in a SignalR Persistent Connection?

The situation is a single javascript client on a SignalR (v1.1.2 from NuGet) persistent connection in an ASP.NET MVC4 project. Once connected I send multiple messages in a row from the client to the server. On the server my OnReceived override…
Screndib
  • 1,024
  • 11
  • 23
1
vote
2 answers

"Persistent streams" for Java FileWriter?

When I want to write Java code for writing text to a file, it usually looks something like this: File logFile = new File("/home/someUser/app.log"); FileWriter writer; try { writer = new FileWriter(logFile, true); writer.write("Some…
user1768830
1
vote
1 answer

Persistent connection for repeated API calls

My android application is calling authenticated webservice API to download and sync records from server based on type of data. For example: Application calls the API in loop for different content types(Commerce, Science, Arts). Now for each content…
1
vote
2 answers

vb.net how to check if a network drive is mapped persistently

I use the following code to layout network drives on a system. I want to add a third column for persistence but in vb.net I do not know how to check if a drive has a persistent map or not. Any suggestions? For Each drive_info As DriveInfo In…
MaQleod
  • 1,011
  • 6
  • 22
  • 33
1
vote
1 answer

Opening 2 connections to the same database with the same credentials

The original task: in my application I need to have 2 different connections to the same database with the same credentials simultaneously. I need that because one connection is used for data transactions, which may be long. And another is for…
zerkms
  • 249,484
  • 69
  • 436
  • 539
1
vote
2 answers

How persistent functions works?

PHP has some persistent version of well-known functions such as mysql_pconnect (deprecated) or pfsockopen From what I've read, I understand that such functions cache the resource produced by the first call and reused when needed. But for exemple…
grunk
  • 14,718
  • 15
  • 67
  • 108
1
vote
4 answers

Persistent connections between Flash client and Java server

I'm new to Flash. I'm planning to create a game client in Flash (running in browser) that needs to talk to a server written in Java. Connection between client and server needs to be persistent. I'm aware of XMLSocket - is that the only way to…
byteclub
  • 605
  • 1
  • 5
  • 10
1
vote
2 answers

Does python httplib allow persistent connection?

As I read the sample code, I first need to open and connection conn = httplib.HTTPSConnection(server) and then I can send multiple requests without making a new connection: conn.request(...) So does it mean that I have a persistent connection ?…
w00d
  • 5,416
  • 12
  • 53
  • 85
1
vote
2 answers

Persistent Database Connection in PHP

I have some doubts about persistent database connections in PHP. I understand that using a persistent connection can be efficient because every PHP process that needs a connection with the same host/user can share that connection, without having to…
MaCi
  • 163
  • 2
  • 11
1
vote
1 answer

Cancel HTTP/1.1 Chunked Response AND Maintain Persistent Connection

This question is mostly an HTTP question, I am working on an iOS app, though this question is not specific to iOS. I would like to use persistent connections, and have no problems doing so, until an HTTP response uses the chunked transfer type,…
Kekoa
  • 27,892
  • 14
  • 72
  • 91
1
vote
2 answers

Ensure php session gets the same oracle session when using oci_pconnect

I would like to use global temporary tables to store some expensive intermediary data. The data is transient, but good for the duration of the php session so it seems that using global temporary tables with on commit preserve rows would be…
Daren Schwenke
  • 5,428
  • 3
  • 29
  • 34
1
vote
0 answers

Setting up a persistent connection using node.js

i am having difficulty finding a solution for the following problem statement Implement a simple web server that will support persistent connection i.e. will honour the HTTP header “Connection: keep-alive”. Thus, when the browser makes the…
Pavan
  • 658
  • 2
  • 7
  • 28
1
vote
4 answers

Possible to open two persistent connections to different remote MySQL servers using JAVA sql?

So I'm trying to run a code which creates a table in a remote MySQL server, by referencing tables located in a different MYSQL server. The server that I am trying to create a table in has space limitations, and the tables that are being referenced…
gfppaste
  • 1,111
  • 4
  • 18
  • 48
0
votes
0 answers

Can another parent close an asynchronous persistent connections

I made a cron file that calls different jobs asynchronous and ends up with calling the sleeper asynchronous. The sleeper sleeps for a 1 minute and then call the cron scripts asynchronous, etc. But I want to rebuild the system to store the last 'file…
Diblo Dk
  • 585
  • 10
  • 26