summaryrefslogtreecommitdiff
path: root/lib_generic/md5.c
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2008-10-01 15:26:29 +0200
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:00 +0200
commite83cc06375ac2bea0830c6ed0f9d8fdc3c1b27d5 (patch)
treea2276aef77069f88aed1159dc77886fb36e4425e /lib_generic/md5.c
parent49f3bdbba8071f56d950a9498b6cdb998b35340a (diff)
downloadu-boot-imx-e83cc06375ac2bea0830c6ed0f9d8fdc3c1b27d5.zip
u-boot-imx-e83cc06375ac2bea0830c6ed0f9d8fdc3c1b27d5.tar.gz
u-boot-imx-e83cc06375ac2bea0830c6ed0f9d8fdc3c1b27d5.tar.bz2
net: Make TFTP server timeout configurable
There are two aspects of a TFTP transfer involving timeouts: 1. timeout waiting for initial server reply after sending RRQ 2. timeouts while transferring actual data from the server Since the upcoming auto-update feature attempts a TFTP download during each boot, it is undesirable to have a long delay when the TFTP server is not available. Thus, this commit makes the server timeout (1.) configurable by two global variables: TftpRRQTimeoutMSecs TftpRRQTimeoutCountMax TftpRRQTimeoutMSecs overrides default timeout when trying to connect to a TFTP server, TftpRRQTimeoutCountMax overrides default number of connection retries. The total delay when trying to download a file from a non-existing TFTP server is TftpRRQTimeoutMSecs x TftpRRQTimeoutCountMax milliseconds. Timeouts during file transfers (2.) are unaffected. Signed-off-by: Rafal Czubak <rcz@semihalf.com> Signed-off-by: Bartlomiej Sieka <tur@semihalf.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'lib_generic/md5.c')
0 files changed, 0 insertions, 0 deletions