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 GitHub by cy10038
, 11 months ago
read failed, socket might closed or timeout, read ret: -1
via Stack Overflow by Игорь Комаров
, 3 months 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:581)
at android.bluetooth.BluetoothSocket.waitSocketSignal(BluetoothSocket.java:558)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:374)
at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothConnector$FallbackBluetoothSocket.connect(BluetoothConnector.java:203)
at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothConnector.connect(BluetoothConnector.java:59)
at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothClient.run(BluetoothClient.java:54)
at java.lang.Thread.run(Thread.java:841)

Users with the same issue

44 times, 2 months ago
305 times, 1 year ago
595 times, 1 year ago
Once, 1 year ago
13 times, 1 year ago

Write tip

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