[U-Boot] [PATCH RFC] TFTP: allow for adjustable retransmission timout

Wolfgang Denk wd at denx.de
Mon Nov 23 23:31:10 CET 2009


Dear Ben,

In message <1256115432-31992-1-git-send-email-wd at 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 <wd at denx.de>
> Cc: Ben Warren <biggerbadderben at gmail.com>
> ---
> 
> 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


More information about the U-Boot mailing list