]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Try a much shorter enum time for cupsGetDests (Issue #5049)
authorMichael Sweet <michael.r.sweet@gmail.com>
Mon, 24 Jul 2017 22:05:39 +0000 (18:05 -0400)
committerMichael Sweet <michael.r.sweet@gmail.com>
Mon, 24 Jul 2017 22:05:39 +0000 (18:05 -0400)
cups/dest.c

index 6df52787d41f35bd40a4ff21e0f6f71f4d099bdc..0fdcc100e6542d7d6200bb89ff765c8533e9baa0 100644 (file)
@@ -61,7 +61,7 @@
 #endif /* __APPLE__ */
 
 #if defined(HAVE_DNSSD) || defined(HAVE_AVAHI)
-#  define _CUPS_DNSSD_MAXTIME  100     /* Milliseconds for maximum quantum of time */
+#  define _CUPS_DNSSD_MAXTIME  50      /* Milliseconds for maximum quantum of time */
 #endif /* HAVE_DNSSD || HAVE_AVAHI */
 
 
@@ -2070,7 +2070,7 @@ cupsGetDests2(http_t      *http,  /* I - Connection to server or @code CUPS_HTTP_
   data.num_dests = 0;
   data.dests     = NULL;
 
-  cupsEnumDests(0, 1000, NULL, 0, 0, (cups_dest_cb_t)cups_get_cb, &data);
+  cupsEnumDests(0, 100, NULL, 0, 0, (cups_dest_cb_t)cups_get_cb, &data);
 
  /*
   * Make a copy of the "real" queues for a later sanity check...