Questions tagged [reconnect]

**reconnct** is a technique to established a connection to a service, which was lost and it is vital to execution of a program.

A web service or a database service are 24/7 online and so the necessity exists to keep the connection alive between program and service.

usage hint

  1. programming language or Framework
  2. Service name
  3. the reconnect tag

example:

210 questions
7
votes
3 answers

ZeroMQ doesn't auto-reconnect

I've just downloaded and installed zeromq-4.0.5 on an Unbutu Precise (12.04) system. I've compiled the hello-world client (REQ, connect, 127.0.0.1) and server (REP, bind) written in C. I start the server. I start the client. Each second the client…
pts
  • 80,836
  • 20
  • 110
  • 183
7
votes
1 answer

Pusher auto reconnect when detecting errors / disconnect

Is there some way to reconnect to Pusher if any error or non-connected state is found? Here's our connection code: var pusher = new Pusher('', {encrypted: true}); var state = pusher.connection.state; pusher.connection.bind( 'error',…
tmartin314
  • 4,061
  • 10
  • 39
  • 60
6
votes
1 answer

TcpClient Auto-Reconnect

What is the best way to make a Tcpclient auto reconnect to the server when it's disconnected (e.g. by the server itself)? The code I'm currently using is: public void ClientWork() { TcpClient client = new TcpClient(); try { …
Kai
  • 5,850
  • 13
  • 43
  • 63
6
votes
3 answers

Quickbooks API reconnect issue

I've been implementing connectivity to Quickbooks via the v3 API with ColdFusion, and have most everything working except reconnect (https://appcenter.intuit.com/api/v1/connection/reconnect). I can get customer info, create/update invoices, etc,…
6
votes
3 answers

LocationClient auto reconnect at `onDisconnect`

I tried to reconnect to LocationClient when the connection gets lost (When user clear the RAM). I tried to use this code: private final GooglePlayServicesClient.ConnectionCallbacks mConnectionCallback = new…
nrofis
  • 8,975
  • 14
  • 58
  • 113
6
votes
2 answers

Implementing Re-connect Strategy using Ruby Net

I'm developing a small application which posts XML to some webservice. This is done using Net::HTTP::Post::Post. However, the service provider recommends using a re-connect. Something like: 1st request fails -> try again after 2 seconds 2nd request…
Matt
  • 1,610
  • 2
  • 17
  • 24
5
votes
1 answer

How To modify Eclipselink JPA 2.0 connection retry behavior

How To modify Eclipselink JPA 2.0 connection retry behavior . Eclipselink automatically tries to reconnect it self to database whenever it detects a connection failure this causes swing ui to freeze without any responses until it connects to…
jawath
  • 439
  • 7
  • 22
5
votes
1 answer

Reconnecting with pySerial

I'm trying to write a function which continuously reads serial input. The function must be able to handle unexpected disconnections from the serial port and reconnect when possible. Despite reading several question posts on stackOverflow and looking…
Raeven
  • 613
  • 2
  • 8
  • 18
5
votes
1 answer

LFTP Reconnect infinite loop

When I try to connect to the host that is dwon I get the following message: cd `sftp://example.com/tmp' [Delaying before reconnect: 30] After each attempt delay sis increasing. I found the following command that should help me: repeat -d 10 -c 1…
meso_2600
  • 1,940
  • 5
  • 25
  • 50
5
votes
1 answer

How to test Intuit reconnect api?

I am building a page that would send a request to Intuit Reconnect API to renew the Oauth Token and Token secret values. It is working. But my test Oauth values is not within 30 days of expiration. Thus the response has always been "Token Refresh…
5
votes
0 answers

iOS 6.0 Core Bluetooth Peripheral reconnect issue

I have a stable working app in iOS 5.0 running on iPhone 4S. We did the migration to iOS 6.0 to run on iPod (5th gen) having bluetooth low energy. On iPhone 4S we were able to pair/bond, connect, disconnect and reconnect at will. We are having…
sredq6iOS
  • 51
  • 2
4
votes
3 answers

Node JS Redis Client Connection Retry

Currently I'm using https://github.com/mranney/node_redis as my node redis client. client.retry_delay is set to 250ms default. I tried connecting to redis and once connection was successful, I manually stopped the redis server to see whether…
Tamil
  • 5,260
  • 9
  • 40
  • 61
4
votes
1 answer

GAE channel API reconnect

I'm working on a chat application on top of GAE and its Channel API. I have studied the doc and the provided examples, also looked through some of the answers around here, still I don't feel like I have the whole picture of the clientId/token…
4
votes
1 answer

Reliably reconnect to the server TCPClient C#

I am having trouble reconnecting a TCPClient (actual class name from C#) to its server. Is there a well defined way of doing this? Do I need to manage the tcp connection at the server as well if a client is trying to reconnect on the same…
user349026
4
votes
0 answers

Why doesn't HikariCP reconnect to the database?

We have a Spring Boot application, using HikariCP as connection pool to an Oracle 12.2 database. If there is an issue and the database becomes unavailable, we get this exception, as expected: java.sql.SQLTransientConnectionException: HikariPool-1 -…
AJPerez
  • 3,435
  • 10
  • 61
  • 91
1
2
3
13 14