Invalid use of BasicClientConnManager: connection still allocated
问题 I am making a call to REST URL and trying to measure how much time it is taking to get the response back. I am using DefaultHttpClient for that to get the response back from REST URL . In my below program , each thread will be working on a particular range. Like Each Thread will work between 1 - 100 and second thread will work between 101 - 200 etc. SO in my below code, for the first time it works fine. But for the second time, it is throwing exception on this line httpclient.execute for the