public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] tftp packet failure counter reset
Date: Tue, 22 Sep 2009 16:32:37 -0700	[thread overview]
Message-ID: <4AB95E95.1040202@gmail.com> (raw)
In-Reply-To: <BLU127-W1755BFF293EAAEFEEA7D75A9DC0@phx.gbl>

Jeffery Palmer wrote:
> I do large transfers via tftp, and since the timeout counter never resets, they often fail since the failures are counted throughout the entire transfer. By resetting the counter to 0 on a successful packet, this issue is fixed
>
>
>
> tftp.c:
>                 } else {
>                         if (((TftpBlock - 1) % 10) == 0) {
>                                 putc ('#');
>                         } else if ((TftpBlock % (10 * HASHES_PER_LINE)) == 0) {
>                                 puts ("\n\t ");
>                         }
> +                       //Reset timeout count since we received a good packet
> +                       TftpTimeoutCount = 0;
>                 }
>
>                 if (TftpState == STATE_RRQ)
>   
Please send a proper patch in plaintext with all the right bits and pieces.

regards,
Ben

  reply	other threads:[~2009-09-22 23:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-22 23:20 [U-Boot] tftp packet failure counter reset Jeffery Palmer
2009-09-22 23:32 ` Ben Warren [this message]
2009-09-23 14:23   ` Jeffery Palmer
2009-09-23 15:23     ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AB95E95.1040202@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox