java.io.IOException: read failed, socket might closed or timeout, read ret: -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by philip
, 10 months ago
read failed, socket might closed or timeout, read ret: -1
via GitHub by emwalters
, 2 years ago
read failed, socket might closed or timeout, read ret: -1
via xamarin.com by Unknown author, 1 year ago
read failed, socket might closed or timeout, read ret: -1
via GitHub by dogmaphobic
, 1 year ago
read failed, socket might closed or timeout, read ret: -1
via Stack Overflow by Mansi Bhatt
, 7 months ago
read failed, socket might closed or timeout, read ret: -1
via GitHub by vishal-raj
, 9 months ago
read failed, socket might closed or timeout, read ret: -1
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:505)
at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:516)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:320)
at adc.com.samplebluetooth.Bluetooth.connectToPaired(Bluetooth.java:248)
at adc.com.samplebluetooth.MainActivity$OnClick.onClick(MainActivity.java:90)
at android.view.View.performClick(View.java:4443)
at android.view.View$PerformClick.run(View.java:18443)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

Users with the same issue

2 times, 3 months ago
595 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
40 times, 1 year ago
2 times, 1 year ago
13 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.