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 ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 2/19/2010 11:08 AM, Chris Mannion wrote: Thank,

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=value in milliseconds

Re: What governs a URL connection timeout?

2010-02-19 Thread Chris Mannion
- 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) Chris is using a library The OP already posted the code of interest

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

What governs a URL connection timeout?

2010-02-12 Thread Chris Mannion
Hi all Hoping someone can shed some light on a little puzzle I have. This may be more a Java programming problem than a Tomcat problem so apologies if that is the case but it's specific to a system running on Tomcat so I'm asking here too. One of our servlets is opening a URL connection to hit

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

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 peter.crowt...@melandra.com wrote: A swift Google for:  java url openStream timeout reveals:  

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 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 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 appropriate timeout value

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) Chris is using a library The OP