Re: SoTimeout setting

2003-10-29 Thread Oleg Kalnichevski
On Tue, 2003-10-28 at 19:18, Michael Becke wrote: Mike, this is certainly a possibility. What tortures me is realization that with this kind of setup HttpConnection (and possibly HttpConnectionManager) should not have been HttpParams-enabled after all. My initial plan was to enable the

RE: SoTimeout setting

2003-10-28 Thread Kalnichevski, Oleg
uses. Dennis Cook BeVocal, Inc. tel: 650-641-1424 fax: 650-210-9275 -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 3:13 PM To: Commons HttpClient Project Subject: Re: SoTimeout setting Mike, I see what you mean. Still, no matter how I

Re: SoTimeout setting

2003-10-28 Thread Ortwin Glück
Dennis Cook wrote: If I might inject a comment from a users viewpoint. We use HttpClient in our VXML interpreter. For any given fetch the application developer can provide a timeout for the fetch. When a method is generated we would need to pass this timeout down to the connection the method

RE: SoTimeout setting

2003-10-28 Thread Kalnichevski, Oleg
Mike, This is a possibility, though I get the impression that people still want to specify things at the request level. There are things that people want even though they do not make sense. SO_TIMEOUT on a per request basis IMHO falls into this category. The more I think about this the

Re: SoTimeout setting

2003-10-28 Thread [EMAIL PROTECTED]
Kalnichevski, Oleg wrote: I have (what appears to me at) a fairly straight-forward approach: allow HttpConnectionParams to be created and customized before physical HttpConnection instance is allocated, when connection manager allocates a connection it can look corresponding parameter object up

RE: SoTimeout setting

2003-10-28 Thread Kalnichevski, Oleg
Oleg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 11:45 To: Commons HttpClient Project Subject: Re: SoTimeout setting Kalnichevski, Oleg wrote: I have (what appears to me at) a fairly straight-forward approach: allow

Re: SoTimeout setting

2003-10-28 Thread Michael Becke
On Oct 28, 2003, at 3:57 AM, Kalnichevski, Oleg wrote: I have (what appears to me at) a fairly straight-forward approach: allow HttpConnectionParams to be created and customized before physical HttpConnection instance is allocated, when connection manager allocates a connection it can look

RE: SoTimeout setting

2003-10-28 Thread Kalnichevski, Oleg
I think we are fairly nearly talking about the same thing. The only possible difference I see is how the instance of HttpConnectionParams is obtained. My thought is to pass the instance into HttpClient as a param to executeMethod() or something similar. Mike, this is certainly a

Re: SoTimeout setting

2003-10-28 Thread Michael Becke
Mike, this is certainly a possibility. What tortures me is realization that with this kind of setup HttpConnection (and possibly HttpConnectionManager) should not have been HttpParams-enabled after all. My initial plan was to enable the user to enumerate HttpConnections contained by the

RE: SoTimeout setting

2003-10-27 Thread Kalnichevski, Oleg
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

Re: SoTimeout setting

2003-10-27 Thread [EMAIL PROTECTED]
Does it mean that I can't set different timeouts for different methods sharing the same client? If not, how can I arrange this? thanks again Kalnichevski, Oleg wrote: Here's the current hierarchy of preference objects Global params ! +--- HttpClient params ! +---

Re: SoTimeout setting

2003-10-27 Thread Ortwin Glück
[EMAIL PROTECTED] wrote: Does it mean that I can't set different timeouts for different methods sharing the same client? Exactly. HttpClient manages connections in a HttpConnectionManager. This can be a pool of connections. A method just requests connections from that pool, uses it and

RE: SoTimeout setting

2003-10-27 Thread Kalnichevski, Oleg
Are you sure you want to be able to set different SO_TIMEOUT per method, not per connection? Oleg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 16:54 To: Commons HttpClient Project Subject: Re: SoTimeout setting Does it mean that I

RE: SoTimeout setting

2003-10-27 Thread Kalnichevski, Oleg
Do things in the right place. Odi, the only problem is that there's no way to enumerate HTTP connection managed by a connection manager. This limitation has already been discussed once, and I sort of promised the poster (who unfortunately did not introduce him/herself) to take care of that

Re: SoTimeout setting

2003-10-27 Thread [EMAIL PROTECTED]
different SO_TIMEOUT per method, not per connection? Oleg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 16:54 To: Commons HttpClient Project Subject: Re: SoTimeout setting Does it mean that I can't set different timeouts for different

RE: SoTimeout setting

2003-10-27 Thread Kalnichevski, Oleg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 16:54 To: Commons HttpClient Project Subject: Re: SoTimeout setting Does it mean that I can't set different timeouts for different methods sharing the same client? If not, how can I

Re: SoTimeout setting

2003-10-27 Thread Ortwin Glück
Maybe you can write your own / tweak existing connection manager in a clever way. Maybe it's worth thinking about that for some time. Oleg: I remember now. Still this would probably introduce subtle threading problems. I am not sure how you want to address that... HTH Odi [EMAIL PROTECTED]

Re: SoTimeout setting

2003-10-27 Thread [EMAIL PROTECTED]
to be able to set different SO_TIMEOUT per method, not per connection? Oleg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 16:54 To: Commons HttpClient Project Subject: Re: SoTimeout setting Does it mean that I can't set different timeouts

Re: SoTimeout setting

2003-10-27 Thread Ortwin Glück
Fabio, I assume you need that feature for your project and you got your schedule and deadlines. If I were you, I would spend some time and money to create a patch and try to get it into the trunk rather than just wait until somebody feels like doing it for you. The good thing about open

RE: SoTimeout setting

2003-10-27 Thread Kalnichevski, Oleg
-Original Message- From: Ortwin Glück [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 16:26 To: Commons HttpClient Project Subject: Re: SoTimeout setting Maybe you can write your own / tweak existing connection manager in a clever way. Maybe it's worth thinking about that for some time

Re: SoTimeout setting

2003-10-27 Thread Michael Becke
, Oleg wrote: Are you sure you want to be able to set different SO_TIMEOUT per method, not per connection? Oleg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 16:54 To: Commons HttpClient Project Subject: Re: SoTimeout setting Does it mean

RE: SoTimeout setting

2003-10-27 Thread Kalnichevski, Oleg
-Original Message- From: Michael Becke [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 17:57 To: Commons HttpClient Project Subject: Re: SoTimeout setting I am a little wary about adding to much configuration functionality to the connection managers. In my mind the connection

Re: SoTimeout setting

2003-10-27 Thread Michael Becke
Mike, Why do you think that providing an ability to enumerate of HTTP connection would break this pattern? I think that adding this functionality could be okay depending on the use. My worry is that it opens up a whole host of possible invalid uses. This was not the concern I was trying to

Re: SoTimeout setting

2003-10-27 Thread Oleg Kalnichevski
Mike, I see what you mean. Still, no matter how I look at it, socket/connection timeout parameters on the HttpMethod level does not seem right. Let's approach the issue from a different angle. You seem to dislike the idea of exposing HttpConnection objects contained by

RE: SoTimeout setting

2003-10-27 Thread Dennis Cook
BeVocal, Inc. tel: 650-641-1424 fax: 650-210-9275 -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 3:13 PM To: Commons HttpClient Project Subject: Re: SoTimeout setting Mike, I see what you mean. Still, no matter how I look at it, socket

Re: SoTimeout setting

2003-10-27 Thread Michael Becke
On Oct 27, 2003, at 6:12 PM, Oleg Kalnichevski wrote: Mike, I see what you mean. Still, no matter how I look at it, socket/connection timeout parameters on the HttpMethod level does not seem right. Yes, I agree. My intention would be to specify connection configuration on a per request basis.