Mercurial > illumos > illumos-gate
changeset 3915:5e6dbb3ef5ca
6537046 frequent timeouts when printing, querying printer
author | ceastha |
---|---|
date | Wed, 28 Mar 2007 17:36:57 -0700 |
parents | 9f2fcd00d060 |
children | 1761dbf695ed |
files | usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c usr/src/lib/print/libpapi-lpd/common/lpd-job.c usr/src/lib/print/libpapi-lpd/common/lpd-query.c |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c Wed Mar 28 15:01:23 2007 -0700 +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-cancel.c Wed Mar 28 17:36:57 2007 -0700 @@ -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 @@ 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 @@ 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);
--- a/usr/src/lib/print/libpapi-lpd/common/lpd-job.c Wed Mar 28 15:01:23 2007 -0700 +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-job.c Wed Mar 28 17:36:57 2007 -0700 @@ -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 @@ 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;
--- a/usr/src/lib/print/libpapi-lpd/common/lpd-query.c Wed Mar 28 15:01:23 2007 -0700 +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-query.c Wed Mar 28 17:36:57 2007 -0700 @@ -265,7 +265,7 @@ 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);