Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: urlread timeout
Date: Sun, 15 Feb 2009 20:05:03 +0000 (UTC)
Organization: ASL Environmental Sciences
Lines: 5
Message-ID: <gn9she$j90$1@fred.mathworks.com>
References: <fqd0qv$iti$1@fred.mathworks.com> <muyfxps1swc.fsf@G99-Boettcher.llan.ll.mit.edu> <ga1grg$cqh$1@fred.mathworks.com>
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 1234728303 19744 172.30.248.37 (15 Feb 2009 20:05:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 15 Feb 2009 20:05:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 190456
Xref: news.mathworks.com comp.soft-sys.matlab:518414


I struggled with this for a while, until I realized that the timeout time is in milliseconds:
urlConnection.setReadTimeout(5000); % timeout in 5 seconds

I added this on line 96 or urlread.m (R2006b) and it works.
dave