• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Explain java.net.SocketTimeoutException: Read timed out

 
alex russo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

Can some one explain me in simple terms what is "java.net.SocketTimeoutException: Read timed out" . I have searched in google and I ran into so many descriptions that I am confused now. If some one can explain me in simple terms that would be of great help.

Note: If I have created a thread in error under wrong tree structure please apologize me and move this post to appropriate location.

thanks

Alex
 
Karthik Jayachandran
Ranch Hand
Posts: 91
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per API, it defines

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


It means the specific destination is unable to connect / unable to read.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15481
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A socket is what you use to communicate over a network (for example to connect to a server on the Internet). The error message means that a program was trying to receive data from a remote computer over the network, but no no data was received for a period of time, so the program stopped waiting for the data to be received.

Is this an error message that you get when you run your own program? If you want us to help you solve the problem, then please explain in more detail what you are trying to do, show us your code, explain exactly when and where the exception occurs, etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic