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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Niek
, 1 year ago
read failed, socket might closed or timeout, read ret: -1
via Stack Overflow by D Liebman
, 2 years ago
read failed, socket might closed or timeout, read ret: -1
via Stack Overflow by AmanS
, 1 year ago
via GitHub by wkeifenheim
, 2 years 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:573)
at android.bluetooth.BluetoothSocket.waitSocketSignal(BluetoothSocket.java:550)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:325)
at com.example.niekdewit.test.BluetoothConnectThread.run(BluetoothConnectThread.java:33)

Users with the same issue

2 times, 4 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

Write tip

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