Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Socket OK only for 10 minutes

843790Dec 18 2008 — edited Jan 8 2009
I have a client/server application in which the client sends to server a String every second. The program works well, but exactly 10 minutes past from the time client connected the server throws "java.net.SocketException: Connection reset" and stops to receive the Strings, but the client continues working normally sending the Strings and the method socket.isConnected() at client continues returning true. This problem doesnt occur when I run the programs in localhost.
I tried do socket.setSoTimeOut(0), but the problem keeps. Somebody knows how to help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2009
Added on Dec 18 2008
7 comments
428 views