commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Charles Huey" <stephenh...@fastmail.fm>
Subject Will HttpClient wait for response before continuing?
Date Mon, 07 Feb 2005 16:18:49 GMT
If you do a GET or POST and call getResponseBodyAsString, HttpClient
obviously has to wait for the response.  If you don't call that, will it
just continue on to the next request before finishing getting the
response from the first one?  I'm trying to debug some connection
pooling stuff on our web app.  Here's some sample code from my load
tester:



int result = hc.executeMethod(getLogin);
getLogin.releaseConnection();
                
doNothing(2000);  // wait 2 seconds

hc.executeMethod(getCreate);
getCreate.releaseConnection();

doNothing(2000);  // wait 2 seconds


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message