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
0
votes
2 answers

nodejs NET api bug? Seeking flawless reconnect fix

I think there may be an issue with the Nodejs v5.3.0 NET api. I am wanting to rely on the socket.remoteAddress field flipping to undefined when the socket is destroyed. socket.remoteAddress The string representation of the remote IP address. For…
user3042597
0
votes
1 answer

How to reconnect and continue normaly on "Error: MySQL server has gone away" in nodesql and MariaDB

I get Error: MySQL server has gone away from time to time using MariaDB and mariasql. The application stops working logically. Now I wonder if there is a way to catch this error, reconnect and continue normal operation.
Aley
  • 8,540
  • 7
  • 43
  • 56
0
votes
2 answers

Cassandra : Changing the number of retry Attempts and the retry Delay

I am using a client to write to cassandra (api : com.datastax.driver.core ) If I bring down the cassandra clustures after the connection has been done. I get the following error in my logs 2015-11-05 12:08:21,667 ERROR [Reconnection-1]…
nandini
  • 428
  • 2
  • 9
  • 20
0
votes
0 answers

Reconnect to wi-fi

I have android 4.4.2 version. When I do the code below on my device , then everything works fine , but when testing occurs on the device android 4.4.4 when you attempt wifiManager.reconnect (); off with an error. public static void reconnect1(){ …
0
votes
1 answer

Delayed disconnect mechanism for WebSockets

I'm trying to add a "delayed disconnect" mechanism to a WebSocket chat I'm developing. What this means is that if the user is disconnected, but reconnects within a certain time limit - I'm going to use 30 seconds as an example - the disconnection is…
Philip Rowlands
  • 283
  • 5
  • 17
0
votes
1 answer

How to reconnect when irc client times out (Ping timeout: 240 seconds)

I'm using ircdotnet library, and I'm trying to reconnect on a timeout, but when I timeout in IRC, the client doesn't recognize it's disconnected, what is wrong with my code, how can I reconnect when it's timedout? namespace IRCBOT { class…
Alex
  • 322
  • 4
  • 18
0
votes
1 answer

Can be closed or broken SqlConnection reconnected simply by calling Open()?

In my method, if I find that connection (System.Data.SqlClient.SqlConnection) which I received has State = Closed or State = Broken which of the following approaches is correct? Call Open() to reconnect and continue with execution of subsequent…
miroxlav
  • 11,796
  • 5
  • 58
  • 99
0
votes
1 answer

How to reconnect the Dealer in Zeromq

I'm using the pattern: Router-Dealer Router send messages to Dealer(A) all the time. Dealer just receive message (SOCKOPT_IDENTITY: A). Work fine in this time. Then i press Ctrl-C to stop the Dealer , and reconnect. Now i got nothing ~~ Is there…
alanyao
  • 1
  • 2
0
votes
1 answer

HBase establishes session with ZooKeeper and close the session immediately

I have found that our RegionServers connect to the ZooKeeper frequently. They seems to constantly establish the session, close it and reconnect the ZooKeeper. Here is the log for both server and client sides. I have no idea why this happens and how…
tobe
  • 1,671
  • 2
  • 23
  • 38
0
votes
1 answer

Flex VideoDisplay reconnect after idletimeout

I have a VideoDisplay that is able to connect to a source and play. After the connection times out I want the connection to be re-established when my play button is clicked. Right now when I reset the source and play the videoDisplay, it gets…
asawilliams
  • 2,908
  • 2
  • 30
  • 54
0
votes
2 answers

Web socket exception could not be caught

When I intentionally shut down a web sockets server the client JavaScript code: try { self.socket.send('ping'); } catch(ex) { console.log('exception'); } writes in Chrome console: WebSocket is already in CLOSING or CLOSED state. This…
Paul
  • 25,812
  • 38
  • 124
  • 247
0
votes
0 answers

C# TcpClient cannot reconnect after netwotk unplugged

The client cannot reconnect to server after network unplugged and plugged again until stop and start client side service again. I get the following exception: No connection could be made because the target machine actively refused it after…
Istak
  • 3
  • 2
0
votes
2 answers

Bluetooth can't connect any more if my application crashed

I developed an application which use Bluetooth to connect to another device(called B). But I found one issue is that when my application crashed on Android tablet, it can not connect to B any more unless I restart the Android tablet. My Android…
Pogo Lin
  • 1,901
  • 1
  • 11
  • 7
0
votes
1 answer

Firebase network connection loss onDisconnect handler trouble

I'm having an issue with trying to handle network connection loss reconnects in Firebase. When the connection gets reestablished it works like it should and writes the user data back to firebase again, but then it removes it again immediately. From…
Spencer Fraise
  • 138
  • 2
  • 11
0
votes
1 answer

TCP Automatic Reconnect (Forever until user tells it to stop)

I have a way to tell the TCP client to connect over and over if a bool is true, but i don´t know if this really is a good way to do it, as i pretty much tells it to to it over and over, and ignore the errors. But i also don´t know of any other way…
Zerowalker
  • 761
  • 2
  • 8
  • 27
1 2 3
13
14