]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Check for and error out on IPP_NOT_FOUND errors...
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 7 Feb 2003 12:03:43 +0000 (12:03 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 7 Feb 2003 12:03:43 +0000 (12:03 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@3326 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES.txt
backend/ipp.c

index 7e35c76e713c47988aff05a49fe9b85a5f492a5f..6b3b35f51f9cdd2e000e87cfc2b090769f94adf3 100644 (file)
@@ -3,6 +3,8 @@ CHANGES.txt - 02/05/2003
 
 CHANGES IN CUPS V1.1.19
 
+       - The IPP backend now detects if the destination queue
+         has gone away and reports an error.
        - The scheduler now allocates its select() sets to
          support larger numbers of clients on systems that
          support it.
index 4579ef757f7b74b38d326f555a30ec6e15daca3c..fd41e6466321951ee2e1d6be29150e33f560937e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.72 2003/01/31 21:22:53 swdev Exp $"
+ * "$Id: ipp.c,v 1.73 2003/02/07 12:03:43 mike Exp $"
  *
  *   IPP backend for the Common UNIX Printing System (CUPS).
  *
@@ -402,9 +402,21 @@ main(int  argc,            /* I - Number of command-line arguments (6 or 7) */
        version = 0;
        httpReconnect(http);
       }
+      else if (ipp_status == IPP_NOT_FOUND)
+      {
+        fputs("ERROR: Destination printer does not exist!\n", stderr);
+
+       if (supported)
+          ippDelete(supported);
+
+       return (1);
+      }
       else
+      {
        fprintf(stderr, "ERROR: Unable to get printer status (%s)!\n",
                ippErrorString(ipp_status));
+        sleep(10);
+      }
 
       if (supported)
         ippDelete(supported);
@@ -1125,5 +1137,5 @@ run_pictwps_filter(char **argv,                   /* I - Command-line arguments */
 
 
 /*
- * End of "$Id: ipp.c,v 1.72 2003/01/31 21:22:53 swdev Exp $".
+ * End of "$Id: ipp.c,v 1.73 2003/02/07 12:03:43 mike Exp $".
  */