s4:dsdb/dns/dns_update.c - increase the timeout for the SPN and DNS update scripts
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 31 Oct 2010 13:46:15 +0000 (14:46 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 31 Oct 2010 18:44:06 +0000 (18:44 +0000)
Sometimes it can take longer than 10 sec.

source4/dsdb/dns/dns_update.c

index 68ad03f1baaaed60a4abd76039608d307fdb376d..ae5be44366fbba028c1d3b2b9effecc664aa5c77 100644 (file)
@@ -297,7 +297,7 @@ static void dnsupdate_check_names(struct dnsupdate_service *service)
        DEBUG(3,("Calling DNS name update script\n"));
        service->nameupdate.subreq = samba_runcmd_send(service,
                                                       service->task->event_ctx,
-                                                      timeval_current_ofs(10, 0),
+                                                      timeval_current_ofs(20, 0),
                                                       2, 0,
                                                       dns_update_command,
                                                       NULL);
@@ -312,7 +312,7 @@ static void dnsupdate_check_names(struct dnsupdate_service *service)
        DEBUG(3,("Calling SPN name update script\n"));
        service->nameupdate.spnreq = samba_runcmd_send(service,
                                                       service->task->event_ctx,
-                                                      timeval_current_ofs(10, 0),
+                                                      timeval_current_ofs(20, 0),
                                                       2, 0,
                                                       spn_update_command,
                                                       NULL);