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

How to get Disconnect Event from BLE layer - Bluez/Linux

A previous question How to get Disconnect Event from GATT Server on Bluez/Linux addresses the disconnect event for Bluez stack. However since the disconnection detection is at the GATT layer it takes a while for the disconnection to be detected at…
SC-SL
  • 377
  • 3
  • 19
5
votes
1 answer

PHP doesn't detect connection abort at all

I have read and deeply understood these: http://www.php.net/manual/en/features.connection-handling.php http://www.php.net/manual/en/function.register-shutdown-function.php However, I have tested both PHP 5.1.6 and 5.3 and things DON'T work as…
matteo
  • 2,934
  • 7
  • 44
  • 59
5
votes
1 answer

Redis disconnecting and reconnecting on Twisted periodically

I have Twisted server with constant connection to Redis. I'm using library https://github.com/fiorix/txredisapi. Problem is that from time to time Twisted lose connection to Redis and reconnects shortly after. I have no idea why. Same thing is…
Rafał Łużyński
  • 7,083
  • 5
  • 26
  • 38
5
votes
1 answer

IdHTTP Access Violation on Disconnect

Indy 10: two threads, thread 1 is calling Get on an TIdHTTP and blocked reading data. thread 2 will call disconnect on the same TIdHTTP in order to interrupt the Get. I'm using Digest Authentication on the TIdHTTP and i get an AV…
Mike Davis
  • 197
  • 11
5
votes
2 answers

How to disconnect an HttpUrlConnection on HTC (Froyo and below) phones?

I need to disconnect a long polling http request from the client side in some cases. The relevant part of the HttpUrlConnection I make to the server is as follows (all the code below is within a Thread's run() method): try { URL url = new…
4
votes
1 answer

NodeJS socket.io-client doesn't fire 'disconnect' or 'close' events when the server is killed

I've written up a minimal example of this. The code is posted here: https://gist.github.com/1524725 I start my server, start my client, verify that the connection between the two is successful, and finally kill the server with CTRL+C. When the…
zslayton
  • 51,416
  • 9
  • 35
  • 50
4
votes
2 answers

How can I reject and close connections in django-channels 2?

It's been 1 month since I started using django-channels and now I have a feeling that I am not disconnecting websockets properly. When I disconnect I want to destroy the group completely if no one is there and it should be no sign of existence. When…
ArminMz
  • 325
  • 6
  • 9
4
votes
2 answers

USB-Serial loses connection immediately in new linux (kernel 4.12.14)

I upgraded my Linux(Opensuse from 42.3 to 15) but encountered new bug. When I connect my USBserial dongle it shows ttyUSB0 in dev folder and immediately disconnected and goes from dev list. It seems all from 'brltty' but I don't know what is this…
Ehsan Davoodi
  • 71
  • 1
  • 7
4
votes
1 answer

How to cleanly shut down an Android paho MQTT service?

I have an Android paho MQTT client that listens for sensor data and alerts the user in case of any threshold violation. I have the following in my app.gradle : implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0' implementation…
Raja
  • 994
  • 13
  • 15
4
votes
2 answers

What is the programmatic way to disconnect a node in Jenkins?

I want to accomplish, through a script using the Jenkins API, the equivalent of manually clicking on the "Disconnect" link on the node management page in Jenkins. I want to add this code to a script I made using the Pipeline scripting plugin. In…
Mark
  • 61
  • 2
  • 4
4
votes
2 answers

Why disposing NetworkStream disconnects client

When the following bare bones code is sending or receiving data, the client becomes disconnected. It was my understanding that a using block disposes the object it creates, ie the NetworkStream object, but why does the TcpClient Socket…
TEDSON
  • 191
  • 2
  • 13
4
votes
0 answers

It's slow to get disconnect signal form BluetoothGatt

I connected to a ble device. Then I reseted the ble device. I got a disconnect callback after 8 second at last. Can I reduce the time to get disconnect callback ?
tiny sunlight
  • 6,231
  • 3
  • 21
  • 42
4
votes
1 answer

All Apps Crash Upon Disconnect

All of a sudden any app I build and send to my phone crashes immediately when I disconnect the wire connecting my iMac to my iPhone and nothing gets sent to the console either. The only thing that I get on the computer screen is the standard warning…
Chaim Friedman
  • 720
  • 6
  • 24
4
votes
2 answers

Java Socket Disconnect Reporting vs. C# Disconnection

in C# when a sockets connection is terminated the other node is informed of this before terminating the link thus the remaning node can update the connection status. in Java when i terminate a communication link the other node keeps reporting the…
iTEgg
  • 8,212
  • 20
  • 73
  • 107
4
votes
1 answer

Rails loses connection to MySQL

When doing normal database queries with ActiveRecord I encounter following errors: Mysql2::Error: Lost connection to MySQL server during query or even ActiveRecord::StatementInvalid (Mysql2::Error: MySQL client ran out of memory) The errors are…
Paul
  • 25,812
  • 38
  • 124
  • 247