<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 9, 2018 at 11:11 AM, Tony Finch <span dir="ltr"><<a href="mailto:dot@dotat.at" target="_blank">dot@dotat.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Tom <<a href="mailto:tomtux007@gmail.com">tomtux007@gmail.com</a>> wrote:<br>
><br>
> Slip is set to "0" (always drop). After stopping the flood, I'm immediately<br>
> able to query the same record (<a href="http://www.example.com" rel="noreferrer" target="_blank">www.example.com</a>) with a positive answer. Does<br>
> the "window 5;" or "window 30;" or "window 3600;" possibly has no effect?<br>
<br>
</span>The script below works for me. My server is configured with<br>
<br>
        responses-per-second 2;<br>
        slip 0;<br>
<br>
The script "floods" at 10 qps for 15 seconds (enough to fill the window),<br>
then drops to 1qps and times how long it takes to recover. At the end it<br>
says the recovery time was 20 seconds. This is a bit more than the window<br>
size because I wasn't completely quiet during the recovery time.<br>
<br>
##############################<wbr>##############################<wbr>####<br>
<br>
#!/bin/sh<br>
<br>
set -eu<br>
<br>
dig='dig +ignore +tries=1 +timeout=1 +norec <a href="http://dotat.at" rel="noreferrer" target="_blank">dotat.at</a> @<a href="http://grey.dotat.at" rel="noreferrer" target="_blank">grey.dotat.at</a>'<br>
<br>
start=$(date +%s)<br>
<br>
while [ $(date +%s) -lt $(($start + 15)) ]<br>
do<br>
        $dig | grep aa &<br>
        sleep 0.1<br>
done<br>
<br>
end=$(date +%s)<br>
<br>
while ! $dig | grep aa<br>
do<br>
        :;<br>
done<br>
<br>
echo $(( $(date +%s) - $end ))<br>
<br>
##############################<wbr>##############################<wbr>####<br>
<span class=""><br>
Tony.<br>
--<br>
f.anthony.n.finch  <<a href="mailto:dot@dotat.at">dot@dotat.at</a>>  <a href="http://dotat.at/" rel="noreferrer" target="_blank">http://dotat.at/</a>  -  I xn--zr8h punycode<br>
</span>Irish Sea: Southeast 5 to 7, becoming cyclonic 4 or 5 later. Moderate or<br>
rough, becoming slight or moderate. Occasional rain. Good, occasionally poor.<br>
<div class="HOEnZb"><div class="h5"></div></div></blockquote></div><br></div><div class="gmail_extra">Tony,</div><div class="gmail_extra">   That's a good test, with the default window of 15 seconds, but could you please repeat it with a window like 120, and see if it changes accordingly?  Tom's testing indicates that the 'window' parameter has no effect, which seems wrong.</div><div class="gmail_extra"><br></div><div class="gmail_extra">-- </div><div class="gmail_extra">Bob Harold</div><div class="gmail_extra"><br></div></div>