You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Mathias Cianci <mc...@axecibles.com> on 2004/08/12 14:49:42 UTC

timeout while waiting from reponse body ?

Hello everybody,

Sometimes, when this code line is executed :
byte[] responseBody = method.getResponseBody();
my thread is blocked because the response is not coming.

Is there a way to put something like a timeout in order to stop the 
thread after 1minute if  the response is not coming ?

Hope an HttpClient-lover will give me an answer

Mathias