Wget and HTTPSocket
Ned Konz
ned at bike-nomad.com
Tue Jun 3 18:17:26 UTC 2003
On Tuesday 03 June 2003 10:45 am, Brent Vukmer wrote:
> My recent Squeak work has done a lot of downloading via HTTP,
> hitting the swiki.gsug.org server. My impression is that
> HTTPSocket is not very robust for handling situations where it
> should retry a request; I routinely find that loading about a
> hundred URLs is enough to create an error within Squeak.
What error?
Are you getting "data was late" messages on the transcript?
The HTTPSocket will try 3 times to wait for up to 5 seconds for a
response, then will return a default that's easy to test for.
However, I'd prefer it to raise an Exception and let the application
determine a retry policy (and a timeout, for that matter).
In your case, it would make more sense to not retry immediately, but
to take the potential retries and save them for later.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|