[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cups-commit
Subject:    [cups.commit] [CUPS] r9128 - trunk/backend
From:       cups-dev () easysw ! com
Date:       2010-04-29 5:13:53
Message-ID: 9898-cups.commit () news ! easysw ! com
[Download RAW message or body]

Author: mike
Date: 2010-04-28 22:13:52 -0700 (Wed, 28 Apr 2010)
New Revision: 9128
Log:
Fix bug when printing from a file.


Modified:
   trunk/backend/ipp.c

Modified: trunk/backend/ipp.c
===================================================================
--- trunk/backend/ipp.c	2010-04-28 23:43:14 UTC (rev 9127)
+++ trunk/backend/ipp.c	2010-04-29 05:13:52 UTC (rev 9128)
@@ -1017,16 +1017,6 @@
     cupsFreeOptions(num_options, options);
 
    /*
-    * If copies aren't supported, then we are likely dealing with an HP
-    * JetDirect.  The HP IPP implementation seems to close the connection
-    * after every request - that is, it does *not* implement HTTP Keep-
-    * Alive, which is REQUIRED by HTTP/1.1...
-    */
-
-    if (!copies_sup)
-      httpReconnect(http);
-
-   /*
     * Do the request...
     */
 
@@ -1043,8 +1033,10 @@
 	else
 	  fd = 0;
 
-        while ((bytes = read(0, buffer, sizeof(buffer))) > 0)
+        while ((bytes = read(fd, buffer, sizeof(buffer))) > 0)
 	{
+	  fprintf(stderr, "DEBUG: Read %d bytes...\n", (int)bytes);
+
 	  if ((http_status = cupsWriteRequestData(http, buffer, bytes))
 	          != HTTP_CONTINUE)
             break;

_______________________________________________
cups-commit mailing list
cups-commit@easysw.com
http://lists.easysw.com/mailman/listinfo/cups-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic