On Thu, 2006-03-02 at 12:36 +0000, Mikael Andersson wrote: > Just in case someone else has the same problem, here is why I had it. The > thing with the connection I am trying to make is that it can take a while if > it needs to do a lot of processing of the data before starting to transmit > it. > > I have a HttpClientParams object passed to the HttpClient objects > constructor. > And on the params object I used .setSoTimeout(10000). > > If I don't do that and instead set the parameter on the GetMethod: > getMethod.getParams().setSoTimeout( 5000 ); > things work great :) > > > Not sure yet why the parameters passed to the HttpClient causes the method > execution to be stopped after the specified interval, and the other a way > doesn't? >
Mikael, This does not sound right to me. I just double-checked the code and am pretty sure both methods produce exactly the same net result. They just differ in scope to which these settings apply. Feel free to examine the source code Oleg > On 22/02/06, Mikael Andersson <[EMAIL PROTECTED]> wrote: > > > > Hi, > > when trying to retrieve a lot of data (15+ meg), I get the a NullPointer > > Exception (the stream is null) and the subject content in my logs. > > (afraid I can't post the stack trace just now) > > > > Help greatly appreciated. > > > > Cheers, > > Micke > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
