[cups-devel] httpReconnect() does not recover from server down/up
Michael Sweet
msweet at apple.com
Tue Oct 28 04:04:22 PDT 2014
Jacob,
This should work. Please file a bug report at:
https://www.cups.org/str.php
and include a sample application that reproduces this. I'll take a look...
> On Oct 24, 2014, at 4:20 PM, Jacob Marble <jacobmarble at google.com> wrote:
>
> Ubuntu 14.04.1 LTS
> CUPS 1.7.2
>
> I'm writing a cloud print proxy that maintains a long-term (hours)
> connection to the CUPS server at localhost:631. Before every CUPS API call,
> I call httpReconnect() to make sure the connection is working.
>
> To test:
> - start the CUPS server
> - start the proxy
> - let the proxy call httpReconnect() - success
> - stop the CUPS server
> - let the proxy call httpReconnect() - fail
> - the proxy handles the error, continues running
> - restart the CUPS server
> - let the proxy call httpReconnect() - fail
>
> I expect httpReconnect() to succeed after the CUPS server comes back up. Am
> I wrong?
>
> Jacob
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://www.cups.org/mailman/listinfo/cups-devel
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list