From 4bd2082ff2d009263265d7de938de336894b6009 Mon Sep 17 00:00:00 2001 From: ceastha Date: Wed, 28 Mar 2007 17:36:57 -0700 Subject: 6537046 frequent timeouts when printing, querying printer --- usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c | 6 +++--- usr/src/lib/print/libpapi-lpd/common/lpd-job.c | 4 ++-- usr/src/lib/print/libpapi-lpd/common/lpd-query.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'usr/src') 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); -- cgit v1.2.3