disconnect

WCF - have client check for service availability [duplicate]

淺唱寂寞╮ 提交于 2019-11-30 07:10:31
问题 This question already has answers here : check the availability of the WCF Web Service (4 answers) Closed 5 years ago . I have a client-server system, both sides written by me, and I would like to put the clients in an 'offline' state when the server disconnects/dies, and then automatically bring them back 'online' when the server is available again. For the first part, I listen for channel faulted events and handle that by setting the client to offline. I then start calling a 'ping' service

PyQt Widget connect() and disconnect()

隐身守侯 提交于 2019-11-30 01:57:29
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: myButton.clicked.connect(function_A) elif connected == False: myButton.clicked.connect(function_B) First of all I would like to disconnect a button from any function it was already connected before the button is being re-assigned/re-connected to another function (function_A or function_B). Secondly, I have already noticed that after the button is re

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

南笙酒味 提交于 2019-11-29 19:50:50
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 try again." when trying to map a drive on the command line. However, there are no open Explorer windows to the remote computer, and nothing shows on the remote computer when I do a "net use". Why does windows think something is connected when "net use" reports that there are no drives or folders open to it?? How can I force Win to stop thinking

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

岁酱吖の 提交于 2019-11-29 18:41:09
My SQL Server 2005 doesn't restore a backup because of active connections. How can I force it? George Stocker SQL Server Management Studio 2005 When you right click on a database and click Tasks and then click Detach Database , it brings up a dialog with the active connections. By clicking on the hyperlink under "Messages" you can kill the active connections. You can then kill those connections without detaching the database. More information here . SQL Server Management Studio 2008 The interface has changed for SQL Server Management studio 2008, here are the steps (via: Tim Leung ) Right

iOS 6 - Bluetooth LE disconnect

社会主义新天地 提交于 2019-11-29 06:59:44
Ok what the heck is up with iOS6 and how it handles Bluetooth LE disconnections? Before the device would disconnect immediately but now, for some strange reason, the device waits to disconnect for about 30-60 seconds. I need it to disconnect ASAFP! I've been searing all over the internet trying to figure out how to initiate an immediate disconnection from the peripheral and I found this nifty email that explains a workaround is to unsubscribe from notifications on the service characteristics. Now I think I'm doing that.. When I want to disconnect I call [connected_device setNotifyValue:NO

WCF - have client check for service availability [duplicate]

女生的网名这么多〃 提交于 2019-11-29 01:53:16
This question already has an answer here: check the availability of the WCF Web Service 4 answers I have a client-server system, both sides written by me, and I would like to put the clients in an 'offline' state when the server disconnects/dies, and then automatically bring them back 'online' when the server is available again. For the first part, I listen for channel faulted events and handle that by setting the client to offline. I then start calling a 'ping' service on the server (every 30 sec.) which just returns a bool if it is alive. Once it is alive the client gets the bool and

PyQt Widget connect() and disconnect()

陌路散爱 提交于 2019-11-28 23:27:14
问题 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: myButton.clicked.connect(function_A) elif connected == False: myButton.clicked.connect(function_B) First of all I would like to disconnect a button from any function it was already connected before the button is being re-assigned/re-connected to

c# detecting tcp disconnect

我的梦境 提交于 2019-11-28 20:53:49
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 application, then says something, then wait for the feedback and disconnect from the server, then show the feedback in the form. Though the server application seems to behave correctly (I have tested it with Telnet and I see the feedback and I see the disconnect occurring directly after the feedback), the form application however doesn't seem to notice the

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 15:36:07
问题 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 try again." when trying to map a drive on the command line. However, there are no open Explorer windows to the remote computer, and nothing shows on the remote computer when I do a "net use". Why does windows think something is connected when "net

MySQL rollback on transaction with lost/disconnected connection

喜你入骨 提交于 2019-11-27 18:52:39
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 MAX(ID) FROM tblone FOR UPDATE; #... then disconnect your connection to the server On Client B: START TRANSACTION; SELECT MAX(ID) FROM tblone FOR UPDATE; #... lock wait time out will occur here I had set MySQL's server option like innodb_rollback_on_timeout and using mysql's client mysql --skip-reconnect on both client. I tried this using one server and