[REBOL] http timeout Re:
From: sterling::rebol::com at: 24-Aug-2000 15:07
The timeout specified in system/schemes/default/timeout is 30 seconds
as you say. That value is passed on to the other protocols if they do
not specify their own. For instance, if system/schemes/http/timout is
set to 45 then the 30 second default does not apply and the http
timeout will be 45 seconds.
The timeout specified is the time between packets to wait. Everytime
data comes in the wait time is reset. Otherwise all large downloads
would timeout about 30 seconds after they started.
The best way to deal with large files is to write them to disk as they
come in. Then if it fails you can try to continue the download using
the /skip refinement to READ or OPEN. This works with both FTP and
HTTP on servers that accept restart commands. So you would use
open/direct/binary to open a port and then loop reading data and
write/append/binary that data onto the local file. Then if you get a
timeout you can wait a minute and then restart the download starting
at the length? of the file you have on disk. That should be a more
reliable system for downloading large files.
It seems that you are having trouble with the timeout so if you think
that it is bahaving incorrectly please do send an email to
[feedback--rebol--com] with a short example and a description of what you
are doing that causes the incorrect results.
So my vote on the survey at the bottom is choice #1 (that's alwys my
vote) since timeouts are implemented as you request already.
Therefore, if there is a bug, we want to know about it so we can fix
it and post a new experimental build for you to try out.