Questions tagged [disconnect]

A break or interruption in an existing connection, continuum, or process.

A break or interruption in an existing connection, continuum, or process. This can include:

  • Ending a connection to a server
  • Ending a connection to internet
  • Terminating operating system services
  • Removing event handlers from an object
403 questions
173
votes
10 answers

When restoring a backup, how do I disconnect all active connections?

My SQL Server 2005 doesn't restore a backup because of active connections. How can I force it?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
113
votes
12 answers

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed

Using Windows 2008 R2. On our server we get this error: "Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and…
raphael75
  • 2,982
  • 4
  • 29
  • 44
106
votes
4 answers

Socket.IO handling disconnect event

Can't handle this disconnect event, don't know why socket is not sent to the client / client doesn't respond! Server io.sockets.on('connection', function (socket) { socket.on('NewPlayer', function(data1) { online = online + 1; …
Raggaer
  • 3,244
  • 8
  • 36
  • 67
39
votes
3 answers

socket.io: disconnect event isn't fired

I have made a simple realtime visitor counter. You can download it from this repository. What happens is that disconnect event (even after browser closing) on server is never fired. server.js is: (function () { var app, count, express,…
Giovanni Bitliner
  • 2,032
  • 5
  • 31
  • 50
33
votes
3 answers

PyQt Widget connect() and disconnect()

Depending on a conditions I would like to connect/re-connect a button to a different function. Let's say I have a button: myButton = QtGui.QPushButton() For this example let's say I check if there is an internet connection. if connected == True: …
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
25
votes
3 answers

c# detecting tcp disconnect

I have two simple applications: A Server application that waits on a specific tcp port for a client to connect. Then listens to what he says, send back some feedback and DISCONNECT that client. A Form application that connects to the server…
nl-x
  • 11,762
  • 7
  • 33
  • 61
22
votes
2 answers

MySQL rollback on transaction with lost/disconnected connection

I need to make MySQL server to rollback transaction immediately after its client disconnected, because each client works concurrently. The problem can be reproduced like these (using an innodb table type) On Client A: START TRANSACTION; SELECT…
qsoft
  • 424
  • 2
  • 5
  • 17
19
votes
3 answers

Disconnect from ssh2_connect()

I've connected over ssh2 using ssh2_connect to a server, but I don't see any method in the manpages for how I should end the connection. I'm not exactly a fan of waiting for a script to end before I disconnect. Can I use fclose? That doesn't sound…
Incognito
  • 20,537
  • 15
  • 80
  • 120
17
votes
2 answers

How can I detect a USB disconnect event? (Windows, .NET C# application)

Currently how I do this is I poll for a masked list of USB devices (masked specifically for the device I'm working with) and if it's there, I continue, if not then I notify the user that the device is not connected. The method for getting a list of…
Jon
  • 1,379
  • 1
  • 12
  • 32
17
votes
4 answers

Programmatically Connect and Disconnect Android Device

I need to find a way to (using an Android application) programmatically connect and disconnect an Android device from a host. I am using a Galaxy Nexus. My goal is to keep everything as close to stock as possible, though I have already enabled…
RyanLeonard
  • 183
  • 1
  • 8
16
votes
2 answers

How to detect client-side if the server disconnects me?

I have a WCF self-hosted service with a net.tcp DuplexChannel. On the server I run the following to disconnect a client: ((ICommunicationObject)client.CallbackChannel).Close(); This works fine but how do I detect on the client that it has been…
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
14
votes
1 answer

Disconnect Mutation Observer from Callback Function

How can I disconnect my mutation observer from its callback function? The changes are being observed as they should, but I would like to disconnect the observer after the first change. Since the observer variable is out of scope, it's not…
GTS Joe
  • 3,612
  • 12
  • 52
  • 94
13
votes
5 answers

How do you remove a dojo connected event if you do not have the "handle" that was returned during the dojo.connect?

How do you remove a dojo connected event if you do not have the "handle" that was returned during the dojo.connect? My example involves dynamically assigning a set of events to a set of objects. (for simplicity, the events are onclick and…
Bear
  • 145
  • 1
  • 1
  • 7
12
votes
2 answers

HTTP disconnect/timeout between request and response handling

Assume following scenario: Client is sending HTTP POST to server Request is valid and have been processed by server. Data has been inserted into database. Web application is responding to client Client meets timeout and does not see HTTP…
dfens
  • 5,413
  • 4
  • 35
  • 50
12
votes
4 answers

Socket.io disconnect client by id

I'm new to nodejs and trying to write a chat room as so many people have. The chat consists of multiple rooms and clients. Commands such as /nick /join /help /ls users /ls rooms work as you would expect although I'm having trouble with getting a…
rwxes
  • 285
  • 1
  • 2
  • 10
1
2 3
26 27