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
53
votes
1 answer

When does a reconnect in signalR occur?

I've started working with SignalR and was trying to figure out when a Hub Reconnect occurs. I didn't find any satisfying explanation on the web. Can someone explain when/why a reconnect occurs?
gsharp
  • 27,557
  • 22
  • 88
  • 134
38
votes
2 answers

Should WebSocket.onclose be triggered by user navigation or refresh?

Part 1: Expected behaviour? I'm seeing some inconsistent browser behaviour between Firefox and Chrome in relation to the onclose handler being called. It seems that Chrome does not trigger an onclose if it was caused by a user page…
leggetter
  • 15,248
  • 1
  • 55
  • 61
32
votes
6 answers

Is there any way to have the JBoss connection pool reconnect to Oracle when connections go bad?

We have our JBoss and Oracle on separate servers. The connections seem to be dropped and is causing issues with JBoss. How can I have the JBoss reconnect to Oracle if the connection is bad while we figure out why the connections are being dropped in…
Joshua
  • 26,234
  • 22
  • 77
  • 106
17
votes
5 answers

Update query string parameter at socket.io reconnect

I pass a custom query string containing an ID to authorize a client on the server when he is connecting via socket.io. var env = {id:12345}; var socket = io.connect('https://example.com', {query:'i='+env.id, port:443, reconnect:false, secure:true});…
1nsane
  • 1,017
  • 2
  • 12
  • 21
16
votes
1 answer

Win8.1 will fire unload and load event to the WPF application when we close and reconnect to this machine using RDC from win7 or other OS

This is a strange issue only in Win8.1. As we all know, if there is a running application in a machine, there should not be any other behavior against the application when we connect/disconnect/reconnect to this machine by Remote Desktop Connection.…
capcom923
  • 638
  • 5
  • 15
14
votes
6 answers

PHP mysqli reconnect problem

I am having trouble using the mysqli class in PHP and I haven't been able to find the answer anywhere. In my script a class creates a mysqli connection that it uses throughout it's functions. Afterward, this script forks. The connection is used by…
Evan Carothers
  • 143
  • 1
  • 1
  • 5
13
votes
2 answers

How to buffer MongoDB inserts during disconnect in node.js?

We do read an XML file (using xml-stream) with about 500k elements and do insert them into MongoDB like this: xml.on(`endElement: product`, writeDataToDb.bind(this, "product")); Insert in writeDataToDb(type, obj) looks like…
Daniel W.
  • 31,164
  • 13
  • 93
  • 151
11
votes
3 answers

Spring Boot RSocketRequester deal with server restart

I have a question about Springs RSocketRequester. I have a rsocket server and client. Client connects to this server and requests @MessageMapping endpoint. It works as expected. But what if I restart the server. How to do automatic reconnect to…
George
  • 121
  • 2
  • 6
11
votes
2 answers

Smack Client - User is still 'online' although connection aborted

I experience a quite strange behavior using smack to build a small XMPP Client/Bot. I set up the connection as well as a ConnectionListener and a ChatManagerListener. This works quite fine and I can then chat with my application which is running on…
signpainter
  • 720
  • 1
  • 7
  • 22
10
votes
2 answers

Force to reconnect MySQL in Rails

How to force MySQL reconnect at my will in Rails application? I would like to do this either periodically or on DB exceptions like "MySQL server has gone away". I found ActiveRecord::Base.remove_connection but as it is written, it should be called…
Paul
  • 25,812
  • 38
  • 124
  • 247
9
votes
4 answers

How to reconnect when the LDAP server is restarted?

I have a situation where through a Java program, I create a javax.naming.ldap.LdapContext and do a search() operation on it - which makes an underlying connection. Then I put the Java app thread to sleep, during which I restart the LDAP server…
Anand
  • 409
  • 3
  • 7
  • 15
9
votes
1 answer

TLS Session Resumption in php

I'm writing a multithreaded php client that makes a https requests to an apache reversed proxy and measures some statistics. I'm writing a bachelor thesis about improving the performance with TLS Session Resumption. Now I need to do a proof of…
Nicolas
  • 118
  • 13
8
votes
1 answer

MySQL's auto-reconnect in django

How do you set the behavior of MySQL's automatic reconnection behavior in django? I'm assuming this is a client side configuration, correct?
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
8
votes
3 answers

How to reconnect to accidentally disconnected ssh session WITHOUT screen or tmux

I know these kinds of questions have been asked for years, and the answer to them are often Screen or tmux. I surely will use screen at beginning if I know I will leave the session for a long time, or the network is too bad to maintain a reliable…
lyu
  • 588
  • 1
  • 6
  • 8
7
votes
1 answer

Does socket.io reconnects re-run connect?

I've built a simple web application that does some communication through a node.js server using socket.io. When a user connects, node communicates back info which tells the client to subscribe to certain events. That works fine. But if you let the…
frank stallone
  • 301
  • 4
  • 7
1
2 3
13 14