Questions tagged [disconnection]

42 questions
1
vote
1 answer

Reduce occurrence of Instant Passed (0x28) BLE disconnection error

I am developping an application on the STM32 SPBTLE-1S module (BLE 4.2). The module connects to a Raspberry Pi. When the connection quality is low, a disconnection will sometimes occur with error code 0x28 (Reason: Instant Passed) before the…
Xavier B
  • 13
  • 3
1
vote
1 answer

ASIHTTPRequest no error when lost connection

I am downloading file (with apache tomcat 6.0.32). When I make disconnect (shutdown tomcat) some times ASHITTPRequest generate error, but sometimes (most of times exactly...ALL TIME EXACTLY! Only if there is no connection at the beginning occurs…
1
vote
1 answer

Resume gdb session after parent shell terminated

I was running gdb over an SSH shell. After a while the shell disconnected due to being idle. On reconnecting I see the gdb instance still running. How do I take control of the running gdb instance? Can I start a new gdb instance and take over the…
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
1
vote
0 answers

How can I detect web service client disconnection nusoap php

how can i detect a client disconnection in php. I have a web service that uses nusoap library and I want to detect web service client disconnection. I try with this code: ignore_user_abort(true); // Continue running the script even when…
sri
  • 11
  • 2
1
vote
0 answers

Apple Push Notification Service Connection Idle Lifetime

I am working on implementing a provider for remote push notifications for IOS devices. I also read the following on the best practices guide on Apple's developer website Keep your connections with APNs open across multiple notifications; don’t…
Jesse
  • 43
  • 5
1
vote
1 answer

javax.comm.portinuseexception port currently owned by

I've made a program that connects to a device via rs232. It all works perfectly fine until I close the connection and try to reopen it again from the same application. I get the following exception: javax.comm.PortInUseException: Port currently…
BornForJava
  • 221
  • 1
  • 3
  • 13
1
vote
2 answers

Android Bluetooth Low Energy connection timeout while BLE chip is computing

My BLE application requires computation on the server side (BLE chip) which takes time and results with disconnection. Th flow is like this: 1- Android phone writes the characteristic value to the BLE chip. 2- The chip evaluates this value and…
1
vote
1 answer

Socket connection between end points on the same machine

When two end points of a socket connection reside on the same machine (Wintel, in this case), do messages between each other traverse onto the NIC card, network medium, and then back to the NIC/machine, and finally to to the other end point? The…
yumcious
  • 61
  • 1
  • 2
0
votes
1 answer

Is it possible to create an event and handle it, if the connection to a MySQL server is lost?

Let's say I have my client application and it makes a connection to the MySQL server. Fantastic. I don't implement this as a thread. I just utilise the MySQLConnection class. And now let's say Jim who's really careless about the office accidently…
Andrew Weir
  • 1,020
  • 2
  • 13
  • 27
0
votes
1 answer

Detecting Socket disconnect

I've a Socket connected to another device on my LAN. How can i detect the disconnection When i unplug the device from the AC. The thread is blocked on: BufferedReader b=// b.readLine();
natio
  • 41
  • 1
  • 1
  • 4
0
votes
0 answers

xshell randomly disconnected from linux server (Socket error Event: 32 Error: 10053)

When I use xshell or any other software to connect a remote server, I sometimes see internet disconnection. The error message is as follows. Socket error Event: 32 Error: 10053. Connection closing...Socket close. Connection closed by foreign…
0
votes
0 answers

c# TCPServer seems not to respond to client dissconnection

This TCP Server Works, but does not process the Client disconnection I tried the TCP Client c# and Xamarin for the Android Phone\Tablet Both Connect and Send Data correctly, But the Server seems not to respond the client dis-connection The Purpose…
dwk
  • 69
  • 1
  • 9
0
votes
0 answers

I need to write java code that can monitor and detect network disconnection without pressing any button in apache netbeans

Presently I have followed some of the codes that had been solved here and I was able to detect network when I press my button to check. It works fine. When I disconnect from network, I click the button to check again. It works fine. However, what I…
0
votes
1 answer

Raspberry PI Bluetooth RFcomm Immediately Disconnects

I am trying to create a connection between a Raspberry Pi, and a .NET application, on a Windows 10 computer. Thus far, I have managed to pair the 2 devices. The next step is to send data between them. To do this, I used the following command to…
Éndoxos
  • 19
  • 8
0
votes
1 answer

Database connection with postgres keeps on disconnecting in the server in python language

import psycopg2 from psycopg2 import pool connection_pool = psycopg2.pool.ThreadedConnectionPool(1, 50, user='A', password='S', host='D',port='D', database='AD') def fetch_data(id): try: sql = build_sql_query('SELECT * FROM USERS') …