I have an application which needs to make requests to another application and am using HttpClient to do this. My application will have multiple users at once using the application. The application that I need to connect to is in the form of a wizard with about 5 pages in this wizard which are all GET's. I reuse the DefaultHttpClient client for each GET and works. The obvious would be to shutdown the connection on the final GET. But what happens if the user for some reason decides not to go through the entire wizard and does not reach the final page?
What is the effect of not shutting down the connection. Is there a way to timeout the connection? Does the connection shutdown when the session ends?
