commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [httpclient] How to set connection TO in 2.0.2 ?
Date Fri, 25 Nov 2005 10:26:31 GMT
On Fri, Nov 25, 2005 at 10:56:29AM +0100, Nicolas De Loof wrote:
> 
> Thanks for info.
> 
> Does "disabled" mean that if server is KO, the process will wait until 
> beeing killed ?
> 

It all depends what you mean by KO. If the server process is unavailable, 
an IOException will eventually be thrown. The exact behaviour as well as
the default connection timeout are system / JRE specific. If the server 
process dies unexpectedly, an IOException will be thrown immediately. If 
the server process deadlocks and stops sending data, this may lock down 
the client thread if the socket timeout is zero

Hope this helps

Oleg

> 
> Oleg Kalnichevski a ?crit :
> 
> >On Fri, Nov 25, 2005 at 10:00:31AM +0100, Nicolas De Loof wrote:
> > 
> >
> >>Hello,
> >>
> >>I've a problem on a production application that uses commons-httpclient 
> >>: The target server I try to connect to is KO. I have to make the 
> >>connection TimeOut configurable, but I don't know how to do it on 
> >>httpclient 2.0 (HttpParams beeing a 3.0 feature)
> >>
> >>Ho do do this ? What is the default TO value ?
> >>
> >>   
> >>
> >
> >Socket timeout:
> >http://jakarta.apache.org/commons/httpclient/2.0/apidocs/org/apache/commons/httpclient/HttpClient.html#setTimeout(int)
> >
> >Connect timeout:
> >http://jakarta.apache.org/commons/httpclient/2.0/apidocs/org/apache/commons/httpclient/HttpClient.html#setConnectionTimeout(int)
> >
> >Both values are set to zero (disabled) per default
> >
> >Oleg
> >
> > 
> >
> >>Nico.
> >>
> >>This message contains information that may be privileged or confidential 
> >>and is the property of the Capgemini Group. It is intended only for the 
> >>person to whom it is addressed. If you are not the intended recipient,  
> >>you are not authorized to read, print, retain, copy, disseminate,  
> >>distribute, or use this message or any part thereof. If you receive this  
> >>message in error, please notify the sender immediately and delete all  
> >>copies of this message.
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >>
> >>
> >>   
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> > 
> >
> 
> This message contains information that may be privileged or confidential 
> and is the property of the Capgemini Group. It is intended only for the 
> person to whom it is addressed. If you are not the intended recipient,  you 
> are not authorized to read, print, retain, copy, disseminate,  distribute, 
> or use this message or any part thereof. If you receive this  message in 
> error, please notify the sender immediately and delete all  copies of this 
> message.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
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