Path: news.mathworks.com!newsfeed-00.mathworks.com!panix!bloom-beacon.mit.edu!llnews!53ab2750!not-for-mail
From: Peter Boettcher <boettcher@ll.mit.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: urlread timeout
References: <fqd0qv$iti$1@fred.mathworks.com>
Message-ID: <muyfxps1swc.fsf@G99-Boettcher.llan.ll.mit.edu>
Organization: MIT Lincoln Laboratory
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)
Cancel-Lock: sha1:QSAHbc3463BbZnCewsh6AcWvH5s=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 20
Date: Tue, 29 Jul 2008 13:50:43 -0400
NNTP-Posting-Host: 155.34.163.114
X-Complaints-To: news@ll.mit.edu
X-Trace: llnews 1217353090 155.34.163.114 (Tue, 29 Jul 2008 13:38:10 EDT)
NNTP-Posting-Date: Tue, 29 Jul 2008 13:38:10 EDT
Xref: news.mathworks.com comp.soft-sys.matlab:482460



"Michele " <denber.nospam@mindspringNOSPAM.com> writes:

> Nothing?  No one else has this problem?  Anyone?  I could
> still use some help with this one.  Thanks.

On USENET, your previous post isn't here, so we don't have access to
it.  But I gather you want urlread to timeout gracefully.


urlread uses a Java class to do the connection.  "edit urlread" and
"edit urlreadwrite" for the code.  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.  I bet if you modify urlread.m (I would
make yourself a local copy of it, on your MATLAB path, to avoid toolbox
and hashing issues) to set appropriate timeouts for these, things would
work nicely.  You might call your copy urlread_with_timeout.m

-Peter