Socket backend wastes 5 seconds of time

Michael Sweet mike at easysw.com
Sat May 31 17:21:53 PDT 2008


Bertram Scharpf wrote:
> Hi,
> 
> after an upgrade to CUPS 1.3.7 (Gentoo), on a large amount of
> print jobs, the printer pauses after every three pages.
> 
> I detected that the socket backend needs at least 5 seconds:
> 
>   I [27/May/2008:14:14:15 +0200] [Job 49465] Started backend /usr/libexec/cups/backend/socket (PID 1994)
>   I [27/May/2008:14:14:21 +0200] [Job 49465] Completed successfully.
> 
> Examining the sources I find in backend/socket.c, line 391
> 
>     while (wait_bc(device_fd, 5) > 0);
> 
> This ends in a select() call with a timeout of 5 seconds. As far
> as I see, 5 seconds will be waited to determine that no further
> information is queued.
> 
> In my opinion, this interval should be shortened.

Please file a feature request:

     http://www.cups.org/str.php

It would also be useful if you can remove that while loop from your
copy of CUPS and see if it continues to work for you.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com




More information about the cups mailing list