From: Wolfgang Denk Date: Mon, 23 Nov 2009 23:31:10 +0100 Subject: [U-Boot] [PATCH RFC] TFTP: allow for adjustable retransmission timout In-Reply-To: <1256115432-31992-1-git-send-email-wd@denx.de> References: <1256115432-31992-1-git-send-email-wd@denx.de> Message-ID: <20091123223110.6BE323F6D6@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ben, In message <1256115432-31992-1-git-send-email-wd@denx.de> I wrote: > So far, TFTP negotiated a fixed retransmission timeout of 5 seconds. > In some cases (busy networks, slow TFTP servers) this caused very > slow transfers. Add new environment variable "tftptimeout" allows to > set this timeout. Lowering this value may make downloads succeed > faster in networks with high packet loss rates or with unreliable > TFTP servers. > > Signed-off-by: Wolfgang Denk > Cc: Ben Warren > --- > > I'm not sure if this change is really a good thing. It seems to help > a lot in a test case I had here, but I'm not sure if the previous > timeout settings that also depended on TftpRRQTimeoutMSecs were > simply wrong (and not well tested - in myunderstanding they should > affect only the connection timeout, but not the packet retransmission > timeout), or if these are actually useful or needed in some > configurations. So far, TftpRRQTimeoutMSecs is used in > common/update.c only. > > README | 19 ++++++++++++++++--- > net/tftp.c | 22 +++++++++++++++++----- > 2 files changed, 33 insertions(+), 8 deletions(-) Any comment son that patch? Should I submit it for inclusion? See http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70097 Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The biggest difference between time and space is that you can't reuse time. - Merrick Furst