FreeBSD Bugzilla – Attachment 181567 Details for
Bug 218442
[patch] dns/ddclient: use anticongestion the periodic script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
use anticongestion to reduce bursty load on server
ddclient_anticongestion.diff (text/plain), 970 bytes, created by
Alan Somers
on 2017-04-07 14:04:23 UTC
(
hide
)
Description:
use anticongestion to reduce bursty load on server
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2017-04-07 14:04:23 UTC
Size:
970 bytes
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 437320) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= ddclient > PORTVERSION= 3.8.3 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= dns > MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} > >Index: files/ddclient_force.in >=================================================================== >--- files/ddclient_force.in (revision 437320) >+++ files/ddclient_force.in (working copy) >@@ -16,9 +16,16 @@ > echo > echo 'Forcing ddclient update:' > >- out=`%%PREFIX%%/sbin/ddclient -force` >- echo "$out" >- rc=0 >+ # sleep randomly to reduce congestion on dyn dns server. In >+ # FreeBSD 12.0 the anticongestion function should be used >+ # instead of a hard-coded sleep >+ if [ -n "$anticongestion_sleeptime" ]; then >+ anticongestion >+ else >+ sleep `jot -r 1 0 900` >+ fi >+ >+ %%PREFIX%%/sbin/ddclient -force || rc=3 > ;; > *) > rc=0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 218442
:
181556
| 181567