If not, how can I arrange this?
thanks again
Kalnichevski, Oleg wrote:
Here's the current hierarchy of preference objects
Global params ! +--- HttpClient params ! +--- HttpConnectionManager params ! ! ! +--- HttpConnection params ! +--- HttpMethod params
Logically SO_TIMEOUT parameter applies to HttpConnection objects. It has nothing to do with HttpMethod objects (at least in my opinion). This way SO_TIMEOUT parameter can be defined at the HttpConnection level or any level above HttpConnection, that is HttpConnectionManager, HttpClient, or Global. HttpConnection will retrieve the value of SO_TIMEOUT from the lowest level at which it is defined. Per default SO_TIMEOUT is undefined, that is, the JVM default value will apply
HTH
Oleg
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 15:08 To: Commons HttpClient Project Subject: SoTimeout setting
Hi,
how am I supposed to set the socket timeout for an HttpClient and for different HttpMethods with the new preferences architecture?
I don't understand the inheritance scheme: how can HttpMethodParams inherit SO_TIMEOUT from HttpConnectionParams?
What is the default value of SO_TIMEOUT for a client and for a method?
thanks a lot
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]