]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[image] Add "--timeout" parameter to image downloading commands
authorMichael Brown <mcb30@ipxe.org>
Mon, 10 Mar 2014 13:32:39 +0000 (13:32 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 10 Mar 2014 13:32:39 +0000 (13:32 +0000)
commit3f43c1354e1c1c537c1cae5ef6d0f75019b62174
tree4b022f7e92433963a67a7e932b7e7c9dedccf12a
parentb850a6be2811e9c21d2f6c02ed6c94c51a6522a6
[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>
src/arch/i386/interface/syslinux/comboot_call.c
src/hci/commands/console_cmd.c
src/hci/commands/digest_cmd.c
src/hci/commands/image_cmd.c
src/hci/commands/image_trust_cmd.c
src/include/usr/imgmgmt.h
src/usr/autoboot.c
src/usr/imgmgmt.c