Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: urlread timeout
Date: Sun, 7 Sep 2008 21:25:04 +0000 (UTC)
Organization: Michele Denber (ID: 1-A7A3B)
Lines: 18
Message-ID: <ga1grg$cqh$1@fred.mathworks.com>
References: <fqd0qv$iti$1@fred.mathworks.com> <muyfxps1swc.fsf@G99-Boettcher.llan.ll.mit.edu>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220822704 13137 172.30.248.37 (7 Sep 2008 21:25:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 7 Sep 2008 21:25:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 174773
Xref: news.mathworks.com comp.soft-sys.matlab:489063



Peter Boettcher <boettcher@ll.mit.edu> wrote in message <muyfxps1swc.fsf@G99-Boettcher.llan.ll.mit.edu>...

>  Without knowing much about it, the
> urlConnection object which is returned by urlreadwrite and used at the
> end of urlread has a method "getReadTimeout", "getConnectTimeout", and
> corresponding "set" methods. 

Thanks for the reply.  Uunfortunately I can't get mine to do that.  I get this:

>> urlConnection.getReadTimeout 
??? No appropriate method or public field getReadTimeout for class sun.net.www.protocol.http.HttpURLConnection.

I get the same error when trying setReadTimeout.

The Sun website Java documentation for urlConnection also does not list these Timeouts.  Is this just not in V6R13 or am I missing something here?  Anyway, this doesn't work for me.

Any other ideas for preventing an unresponsive server from hanging your Matlab session?  Thanks.