[Dnsmasq-discuss] Feature request - customizable timeout and max retransmit count for tftp transfer

Damian Kaczkowski damian.kaczkowski+dnsmasq.lists at gmail.com
Tue Jun 18 23:03:21 BST 2013


On 18 June 2013 22:46, Simon Kelley <simon at thekelleys.org.uk> wrote:

> No, that's not the right place to change. The retransmissions/timeouts are
> actually exponential, so the code waits 1 seconds for a reply, retransmits,
> waits 2 seconds, retransmits, waits 4 seconds, retransmits and finally
> waits 8 seconds and then gives up. You can extend that sequence by changing
> the constant in
>
>  else if (++transfer->backoff > 5 && len != 0)
>
> changing 5 to 6 will give you another 16 seconds, to 7 will give you 32
> seconds, etc etc.
>


  else if (++transfer->backoff > 7 && len != 0)

Works like a charm for me (6 doesn't). Thank you again.


ps. Maybe you consider changing 5 to 7 is the code instead of implementing
new option?


Greets.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130619/0cf2da1c/attachment.html>


More information about the Dnsmasq-discuss mailing list