-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple values of document-format-default in CUPS-Get-Printers response #2836
Comments
CUPS.org User: mike How often are you restarting or reconfiguring printers? Can you provide a copy of your cupsd.conf, printers.conf, and error_log files? |
CUPS.org User: gparessant I send you the conf files and yesterday's log |
CUPS.org User: gparessant Sorry, I forget your first question... |
CUPS.org User: gparessant I forget an important point : we use the browsing facility. |
CUPS.org User: rojon We have the same problem, probably this is also linked to STR#2755. |
CUPS.org User: rojon Suggested patch: if (!cupsGetOption("document-format", p->num_options, p->options))
if (!cupsGetOption("job-hold-until", p->num_options, p->options)) |
CUPS.org User: gparessant I apply your patch, now it works fine ! |
CUPS.org User: mike Fixed in Subversion repository. |
"str2836.patch": Index: scheduler/printers.c--- scheduler/printers.c (revision 7622) if (!cupsGetOption("document-format", p->num_options, p->options))
if (!cupsGetOption("job-hold-until", p->num_options, p->options)) |
Version: 1.3.7
CUPS.org User: gparessant
Our 2 central cups servers (more than 400 printers) becomes slower so we need to restart cups 2-3 times a days.
A trace of CUPS-Get-Printers Request shows many values of document-format-default for each printer, always increasing...
I type this :
strace -s 2500 -fv -o /tmp/strace13 lpstat -p hn03ap
For the CUPS-Get-Printers with requested-attributes including "printer-defaults", the response is :
recv(3,"\1\1\0\0\0\0\0\1\1G\0\22attributes-charset\0\5utf-8H\0\33attributes-natural-language\0\2en\4"\0\31printer-is-accepting-jobs
\0\1\1"\0\21printer-is-shared\0\1\0#\0\rprinter-state\0\4\0\0\0\3!\0\31...
...orientation-requested-default\0\0I\0\27document-format-default\0\30application/octet-streamI\0\27document-format-default\0\30application/octet-stream...
The number of document-format-default increase so much (more than 3000) that the cups server becomes too slow.
I don't reproduce the problem on a test machine...
Can you help me ?
Thanks
The text was updated successfully, but these errors were encountered: