0

We made a multiplayer game as a facebook application which uses php ve mysql connections thru java extension frequently to update logs and stuff. We can see CPU usage, memory, load, I/O values, Java heap memory, GC stats, and thread count are perfectly fine. After a few hours, we start to get java socket error (time out) from our php connections called by our java extension (we catch the exceptions and push it to the game's chat screen)

Why do you think this happens?

thanks

2
  • You get read timeout or connect timeout? Commented Apr 30, 2013 at 8:07
  • java.net.SocketTimeoutException: Read timed out Commented Apr 30, 2013 at 8:43

1 Answer 1

2

You get a read timeout when no data arrives within the timeout period. Check the senders.

Sign up to request clarification or add additional context in comments.

2 Comments

Is my understanding correct, read timeout occurs when the server suddenly stop sending data, the timeout countdown starts, and when it reached the specified timeout, it will throw the timed out exception. But the countdown will not start if it can still receive data from the server? Here's my related question: stackoverflow.com/questions/22449647/…
@yin03 As it says in this answer, read timeout occurs when no data arrives within the timeout period. The timer countdown starts when you enter the read method, and stops when data arrives or it expires.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.