Socket backend wastes 5 seconds of time

Bertram Scharpf lists at bertram-scharpf.de
Sat May 31 13:58:42 PDT 2008


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.

Bertram





More information about the cups mailing list