diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2017-07-24 18:05:39 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2017-07-24 18:05:39 -0400 |
commit | 9f573d7be999fe2a859635bd8ebd9b9514b3f7bc (patch) | |
tree | 88de098d1dce9041d3c0bae0c682808f619ce4fa /cups/dest.c | |
parent | 5cc8588e8c6827b2780c667700de8acefa5439b6 (diff) | |
download | cups-9f573d7be999fe2a859635bd8ebd9b9514b3f7bc.tar.gz |
Try a much shorter enum time for cupsGetDests (Issue #5049)
Diffstat (limited to 'cups/dest.c')
-rw-r--r-- | cups/dest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cups/dest.c b/cups/dest.c index 6df52787d..0fdcc100e 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -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... |