Skip to content
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

snmp backend can be very slow #1737

Closed
michaelrsweet opened this issue Jun 1, 2006 · 5 comments
Closed

snmp backend can be very slow #1737

michaelrsweet opened this issue Jun 1, 2006 · 5 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2.1
CUPS.org User: twaugh.redhat

With some devices, the snmp backend gets stuck in connect() for 10 seconds at a time. Example (includes strace -t log):

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193093

Do we need to let that time out on its own, or should we time it out earlier?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

We actually are timing it out early - the normal TCP connection timeout is 5 minutes (300 seconds). The try_connect() function in snmp.c uses a 1 second alarm to abort the connection early...

The strace output showed a 12 second run time - on the long side for sure, but not out of the question on a large network.

Can you ask the user to do the following with that printer turned on:

CUPS_DEBUG_LEVEL=3 /usr/lib/cups/backend/snmp 2>&1 >snmp.log

and post the results?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: twaugh.redhat

Got two logs back, from different people:

https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=130593
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=130663

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Sigh, it is the Kyocera printers that are causing all this trouble. There is another STR (1790) with similar problems...

At this point I'm not sure what we're going to do, but it won't be addressed in 1.2.2...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Please try the attached snmp.c and let me know if it fixes the problem.

If not, please attach the new output from this version...

Thanks!

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

This STR has not been updated by the submitter for two or more weeks and has been closed as required by the CUPS Configuration Management Plan. If the issue still requires resolution, please re-submit a new STR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant