Socket backend wastes 5 seconds of time
mike at easysw.com
Sat May 31 17:21:53 PDT 2008
Bertram Scharpf wrote:
> 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:
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