Questions tagged [disconnection]
42 questions
43
votes
6 answers
Disconnect a bluetooth socket in Android
I'm developing a program in which, from an Android Phone, I have to connect as a client to a Bluetooth medical sensor. I'm using the official Bluetooth API and no problem during connection (SPP profile), but when I end the socket, the sensor is…

user365610
- 443
- 1
- 5
- 9
17
votes
4 answers
Linux Socket: How to detect disconnected network in a client program?
I am debugging a c based linux socket program. As all the examples available in websites,
I applied the following structure:
sockfd= socket(AF_INET, SOCK_STREAM, 0);
connect(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr));
send_bytes =…

user2052197
- 225
- 1
- 3
- 6
7
votes
1 answer
Android Bluetooth Peripheral: Connection terminated by peer (Status 19)
Developed an application which acts as peripheral and connects with other device (central only).
It's working fine in devices having OS version 6.0, but getting some issues in Nougat 7.0.
I've collected some logs, enabling "Bluetooth HCI snoop log"…

Prat
- 143
- 3
- 17
6
votes
1 answer
Flutter: Error after turning off internet connection - "Error while applying io.flutter.console.FlutterConsoleFilter@70f92821 to 'W/zzajf ( 5265)"
I use Firestore for my Flutter app.
When I disable internet connection on emulator, this error appears on the console:
V/NativeCrypto( 6278): Read error: ssl=0xa4621708: I/O error during system call, Software caused connection abort
W/zzaeo (…

Darkhan
- 2,888
- 5
- 20
- 30
4
votes
5 answers
Android check Internet connection automatically
Hello world how to always detect if I am connected or disconnected from the Internet automatically.
Example: When I connected and I turn off 3G or wifi the toast says I'm disconnected, 3 seconds after I activate the 3G or wifi and a toast tells me I…

slama007
- 1,273
- 2
- 18
- 34
2
votes
1 answer
Why would TcpListener be leaking ESTABLISHED connections?
I have an application that's listening messages from a modem in some 30 cars. I've used TcpListener to implement server code that looks like this (error handling elided):
...
listener.Start()
...
void
BeginAcceptTcpClient()
{
…

Pablo Montilla
- 2,941
- 1
- 31
- 35
2
votes
1 answer
Is there an application to block access to a remote machine (to simulate a disconnection)?
Is there some application (with GUI) that enables me to temporarily block access to some remote machine?
My code accesses a remote folder, and I'd like to simulate disconnection of couple of seconds to that server.
I don't want to play with shared…

user1025852
- 2,684
- 11
- 36
- 58
2
votes
1 answer
MQTT Client keeps on diconnecting
I have multiple python files. One files has all the code related to MQTT and has some functions while the other imports the MQTT file and calls functions as an event occurs. The MQTT file only publishes messages some QoS 0 and some QoS 1 and is…

Abdullah Shafiq
- 23
- 1
- 4
2
votes
0 answers
Any solution to Game Center spontaneous player disconnections?
There have been various other threads which touch on this topic, and many solutions offered - none of which ever actually work, so I figured I'd start again.
The problem, which started occurring on iOS 6, and has become chronic with iOS 8 is that…

BGreenstone
- 260
- 1
- 11
2
votes
1 answer
How to detect a Socket disconnection?
I've implemented a task using the async Sockets pattern in Silverlight 3. I started with Michael Schwarz's implementation and built on top of that. So basically, my Silverlight app establishes a persistent socket connection to a device and then…

AngryHacker
- 59,598
- 102
- 325
- 594
2
votes
0 answers
Correct way to reconnect to database after disconnect using Qt and QSqlDatabase
What is the correct way to reconnect to database using Qt4 upon disconnect?
I'm using Sql Server 2012 over ODBC. If I detect disconnection using SELECT 1 query, and then do
db.close();
db.open()
I receive exceptions on other opened SqlQueries (in…

dE fENDER
- 130
- 1
- 8
2
votes
0 answers
Indy TIdTCPServer and disconnection
I have small problem (I wish it's small) with disconnecting server - I mean - only in the moment when I want to disconnect it from server application (server.active=false).
Here is my simple code:
type
PClient = ^TClient;
type
…

Artik
- 803
- 14
- 36
2
votes
2 answers
Detecting SslStream socket disconnection
I am using SslStream on top of NetworkStream that wraps a Socket, how could i detect Socket disconnection at this situation.
In another words i want to detect if the remote client closed the connection.

Daniel Eugen
- 2,712
- 8
- 33
- 56
2
votes
1 answer
Difference between unplugging ethernet cable and disabling ethernet network from OS
I'm trying to make my program robust against network disconnections. Right now, if I disable ethernet network from OS (I'm over Ubuntu 11.10, but I guess that should not matter), my sockets recover once the network is enabled again and everything…

Roman Rdgz
- 12,836
- 41
- 131
- 207
1
vote
1 answer
Periodic client disconnections in MQTT NodeJS server on websockets when deployed to Google Cloud Run
I have a Node JS MQTT server running on websockets and deployed to Cloud Run. This server uses Aedes MQTT Broker library (https://github.com/moscajs/aedes). Clients connect to this server on port 443. Everything works ok, but periodically each…

Miguel
- 302
- 3
- 9