diff options
author | ceastha <none@none> | 2007-03-28 17:36:57 -0700 |
---|---|---|
committer | ceastha <none@none> | 2007-03-28 17:36:57 -0700 |
commit | 4bd2082ff2d009263265d7de938de336894b6009 (patch) | |
tree | 75e175e07d7d875c267d2d7afc6adba98c061187 /usr | |
parent | e603b7d4a53c0b52084ca06218e6eed01ae7d6f1 (diff) | |
download | illumos-joyent-4bd2082ff2d009263265d7de938de336894b6009.tar.gz |
6537046 frequent timeouts when printing, querying printer
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c | 6 | ||||
-rw-r--r-- | usr/src/lib/print/libpapi-lpd/common/lpd-job.c | 4 | ||||
-rw-r--r-- | usr/src/lib/print/libpapi-lpd/common/lpd-query.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c b/usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c index 8134530673..2274e10b15 100644 --- a/usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ @@ -51,7 +51,7 @@ lpd_cancel_job(service_t *svc, int id) list[0] = buf; list[1] = NULL; - if ((fd = lpd_open(svc, 'c', list, 3)) < 0) + if ((fd = lpd_open(svc, 'c', list, 15)) < 0) return (PAPI_INTERNAL_ERROR); memset(buf, 0, sizeof (buf)); @@ -82,7 +82,7 @@ lpd_purge_jobs(service_t *svc, job_t ***jobs) if (svc == NULL) return (PAPI_BAD_ARGUMENT); - if ((fd = lpd_open(svc, 'c', NULL, 3)) < 0) + if ((fd = lpd_open(svc, 'c', NULL, 15)) < 0) return (PAPI_INTERNAL_ERROR); queue = queue_name_from_uri(svc->uri); diff --git a/usr/src/lib/print/libpapi-lpd/common/lpd-job.c b/usr/src/lib/print/libpapi-lpd/common/lpd-job.c index 6d9976825f..b307cd1863 100644 --- a/usr/src/lib/print/libpapi-lpd/common/lpd-job.c +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-job.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ @@ -506,7 +506,7 @@ lpd_submit_job(service_t *svc, char *metadata, papi_attribute_t ***attributes, list[0] = path; list[1] = NULL; - if (((fd = lpd_open(svc, 's', list, 3)) < 0) && (errno != EBADMSG)) { + if (((fd = lpd_open(svc, 's', list, 15)) < 0) && (errno != EBADMSG)) { switch (errno) { case ENOSPC: status = PAPI_TEMPORARY_ERROR; diff --git a/usr/src/lib/print/libpapi-lpd/common/lpd-query.c b/usr/src/lib/print/libpapi-lpd/common/lpd-query.c index 4c1488f90f..c152a146af 100644 --- a/usr/src/lib/print/libpapi-lpd/common/lpd-query.c +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-query.c @@ -265,7 +265,7 @@ cache_update(service_t *svc) if (svc == NULL) return; - if ((fd = lpd_open(svc, 'q', NULL, 3)) < 0) + if ((fd = lpd_open(svc, 'q', NULL, 15)) < 0) return; parse_lpd_query(svc, fd); |