Re: What governs a URL connection timeout?

2010-02-25 Thread Stephan van Loendersloot
On 25-02-10 18:37, Chris Mannion wrote: Very helpful advice. I can't help but feel a little out of my depth with this one :-\ Hi Chris, You may want to check if your JVM is started with one of the following options: -Dsun.net.client.defaultConnectTimeout= -Dsun.net.client.defaultReadTim

Re: What governs a URL connection timeout?

2010-02-25 Thread Chris Mannion
Thanks Chris, Very helpful advice. I can't help but feel a little out of my depth with this one :-\ On 19 February 2010 16:46, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chris, > > On 2/19/2010 11:08 AM, Chris Mannion wrote: >> Thank, genuinely, for the res

Re: What governs a URL connection timeout?

2010-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 2/19/2010 11:08 AM, Chris Mannion wrote: > Thank, genuinely, for the responses, I've learned how I *could* set a > timeout, which I didn't know before. However, what I'm actually > trying to get to the bottom of is what timeout could be in

Re: What governs a URL connection timeout?

2010-02-19 Thread Chris Mannion
-BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chuck, > > On 2/12/2010 10:46 AM, Caldarale, Charles R wrote: >>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >>> Subject: Re: What governs a URL connection timeout? >>> >>> It'

Re: What governs a URL connection timeout?

2010-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/12/2010 10:46 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: What governs a URL connection timeout? >> >> It's possible that (the other) Chri

RE: What governs a URL connection timeout?

2010-02-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: What governs a URL connection timeout? > > It's possible that (the other) Chris is using a library The OP already posted the code of interest, and it would be simple to modify it to set an appropri

Re: What governs a URL connection timeout?

2010-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 2/12/2010 7:34 AM, Peter Crowther wrote: > Chris, did you actually read the link or was that a knee-jerk > response? Notably the following, taken from between the first and > second boxed pieces of code on that page: > > "The openStream()

Re: What governs a URL connection timeout?

2010-02-12 Thread Peter Crowther
Chris, did you actually read the link or was that a knee-jerk response? Notably the following, taken from between the first and second boxed pieces of code on that page: "The openStream() method is actually just a shortcut for openConnection().getInputStream()." ... plus the source of openStream(

Re: What governs a URL connection timeout?

2010-02-12 Thread Chris Mannion
Thanks Peter but we're not using a URLConnection, nor are we explicitly setting any timeouts, as you can see from the code. On 12 February 2010 12:06, Peter Crowther wrote: > A swift Google for: >  java url openStream timeout > reveals: >  http://stuffthathappens.com/blog/2007/09/10/urlopenstream

Re: What governs a URL connection timeout?

2010-02-12 Thread Peter Crowther
A swift Google for: java url openStream timeout reveals: http://stuffthathappens.com/blog/2007/09/10/urlopenstream-might-leave-you-hanging/ as its first hit. In essence: the timeout is controlled by setTimeout on UrlConnection. On 12 February 2010 11:59, Chris Mannion wrote: > Hi all > > Ho