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

Simon Kelley simon at thekelleys.org.uk
Wed Jun 19 10:31:57 BST 2013


On 18/06/13 23:03, Damian Kaczkowski wrote:
> 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?
>
>

That would increase the delay for real failures, but since this is the 
server and not the client, that's probably not a big problem, it just 
means that it takes longer for the failure message to be logged.


Change committed for next release.


Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list