I am trying to understand these 2: ClientConnectionManager cm = new ThreadSafeClientConnManager(); cm.setMaxTotal(100); HttpClient httpClient = new DefaultHttpClient(cm);
Have couple of questions: 1) Can one httpClient object be shared accross multiple threads doing post/get/delete/put requests? 2) What happens in above case if there are more concurrent threads say 200 than actual no. of connections? So what happens if 200 threads trying to use httpClient object (shared). But we created only 100 connections. Does it wait on .execute if all connections are busy? Can somone please help me understand? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
