title: What is client.setConnectTimeOut & client.setReadTimeOut?
body: <p>Can someone please explain why one uses this client.setReadTimeOut and client.setConnectTimeOut timeouts? I am using the same with my Jersey client. I have set a timeout of 5 secs for both connect and read. And for testing purpose I have put a thread sleep in my service for 6 secs. I get a timeout exception but after that my service resumes and gives response as normal. My requirement is to set a timeout for the service to respond and if it is passed it should come out and try again. Also I need to set number of attempts the client should try to connect. Please suggest</p>