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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SocketTimeoutException: Read time out

mohitanchliaJan 20 2010 — edited Jan 20 2010
We are using tomcat 6 on linux and I am seeing lots of Read time out exception. It looks like clients open connection and then disappear and the server times out. However I am not sure if client disappears then why doesn't TCP keep alive kill the connection? There is not much info out there about Read timeout.

I want to reproduce this behaviour and this is what I want to do by writing a small java app:

Scenario 1:
1. open a Socket connection
2. Write to it and not close the connection and wait for infinite time and see what happens on the server

Scenario 2:
1. As a client app open a socket connection to the server
2. Slowly write on the socket which takes upto 1 hr.

Can you please suggest how I can write Scenario 2? Any other suggestions.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 17 2010
Added on Jan 20 2010
4 comments
5,568 views