-
Notifications
You must be signed in to change notification settings - Fork 463
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
In auto-shutdown mode ("-l") scheduler keeps running on subscriptions for push notifications #4754
Comments
CUPS.org User: mike Fixed in Subversion repository. |
CUPS.org User: till.kamppeter Are you sure that the attached patch is fixing this bug? |
CUPS.org User: mike Yes, the issue was that select_timeout() (in main.c) was lowering the timeout when subscriptions were present, preventing idle exit. I removed that code and added code in ipp.c to auto-expire subscriptions as needed (before similar code is used in the main loop - an IPP Get-Subscriptions or Get-Subscription-Attributes request could come in before the main loop expiration code was executed...) |
"str4754.patch":
|
CUPS.org User: till.kamppeter Tested your patch on CUPS 2.1.x of Ubuntu Xenial and it works. Thank you very much. |
Version: 2.1-current
CUPS.org User: till.kamppeter
I use CUPS to implement printing functionality on mobile devices. To save resources I start CUPS on-demand and let CUPS shut down automatically when it gets idle ("-l" command line option).
Problem is that if there is an application's subscription for push notifications (like D-Bus) CUPS keeps running as long as the subscription is there. It should shut down when running out of jobs, ignoring the presence of the subscription.
The text was updated successfully, but these errors were encountered: