From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Sun, 05 Oct 2008 22:13:46 -0700 Subject: [U-Boot] [PATCH v2 3/6] net: Make TFTP server timeout configurable In-Reply-To: <1222867592-58285-4-git-send-email-tur@semihalf.com> References: <12217502093845-git-send-email-tur@semihalf.com> <1222867592-58285-4-git-send-email-tur@semihalf.com> Message-ID: <48E99E8A.1040206@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Bartlomiej Sieka wrote: > 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 > Signed-off-by: Bartlomiej Sieka > --- Applied to net/next regards, Ben