Questions tagged [socket-timeout-exception]

Signals that a timeout has occurred on a socket read or accept.

These exceptions are often occurring in a Java Platform, so read more in:

Class SocketTimeoutException

260 questions
-1
votes
1 answer

Error SocketTimeoutException connecting to google in android

i'm having a problem with the connection for my app (Android). I'm using the following code to check if i have internet connection. ConnectivityManager cm = (ConnectivityManager)context …
-1
votes
1 answer

No connection timeout for sun SSLSocketImpl, potential bug?

Recently we met SocketTimeoutException when the client application connecting to server. The client app utilized Axis1.4 as the SOAP engine. We already set the connection timeout and read timeout as 20 seconds for socket, but it looks like the…
zgcharley
  • 1,084
  • 3
  • 17
  • 24
-1
votes
2 answers

Getting UnknownHostException instead of SocketTimeOutExcepetion

I am new to android and Java. And I am trying to learn android app development from UDACITY. I was trying to run this code and I am expecting a SocketTimeOutExcepetion but what I am getting is UnknownHostException. try { final String BASE_URL =…
-1
votes
2 answers

SocketTimeoutException while readFully

I have below code which throws SocketTimeoutException. Socket socket = new Socket(localhost, 9978); socket.setSoTimeout(10000); OutputStream oStream= socket.getOutputStream(); byte[] data = new byte[] {'h', 'e', 'l', 'l',…
Arjun Patel
  • 345
  • 6
  • 22
-1
votes
1 answer

Android always SocketTimeoutException

Sometimes I get into a state in which I always get SocketTimeoutException. Application restart does not work. Only phone restart works. What can be the cause and fix? I am running the app on an Android 4.3 Nexus 4 btw.
1 2 3
17
18