diff options
author | Michael Brown | 2014-03-10 14:32:39 +0100 |
---|---|---|
committer | Michael Brown | 2014-03-10 14:32:39 +0100 |
commit | 3f43c1354e1c1c537c1cae5ef6d0f75019b62174 (patch) | |
tree | 4b022f7e92433963a67a7e932b7e7c9dedccf12a /src/usr/autoboot.c | |
parent | [monojob] Reset timeout when progress is made (diff) | |
download | ipxe-3f43c1354e1c1c537c1cae5ef6d0f75019b62174.tar.gz ipxe-3f43c1354e1c1c537c1cae5ef6d0f75019b62174.tar.xz ipxe-3f43c1354e1c1c537c1cae5ef6d0f75019b62174.zip |
[image] Add "--timeout" parameter to image downloading commands
iPXE will detect timeout failures in several situations: network
link-up, DHCP, TCP connection attempts, unacknowledged TCP data, etc.
This does not cover all possible circumstances. For example, if a
connection to a web server is successfully established and the web
server acknowledges the HTTP request but never sends any data in
response, then no timeout will be triggered. There is no timeout
defined within the HTTP specifications, and the underlying TCP
connection will not generate a timeout since it has no way to know
that the HTTP layer is expecting to receive data from the server.
Add a "--timeout" parameter to "imgfetch", "chain", etc. If no
progress is made (i.e. no data is downloaded) within the timeout
period, then the download will be aborted.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr/autoboot.c')
-rw-r--r-- | src/usr/autoboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index c9012f21..af3d1f7b 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -165,7 +165,7 @@ int uriboot ( struct uri *filename, struct uri *root_path, int drive, /* Attempt filename boot if applicable */ if ( filename ) { - if ( ( rc = imgdownload ( filename, &image ) ) != 0 ) + if ( ( rc = imgdownload ( filename, 0, &image ) ) != 0 ) goto err_download; image->flags |= IMAGE_AUTO_UNREGISTER; if ( ( rc = image_exec ( image ) ) != 0 ) { |