SocketTimeoutException: Read time out
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.