[cups.development] [RFE] STR #2857: Socket backend wastes 5 seconds of time
Bertram Scharpf
lists at bertram-scharpf.de
Thu Jun 12 16:46:09 PDT 2008
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
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.
I reduced the wait interval to 0:
while (wait_bc(device_fd, 0) > 0);
After compile/install this worked for 10 days without any complaint.
Please reduce it in the next version.
Link: http://www.cups.org/str.php?L2857
Version: -feature
More information about the cups-devel
mailing list