[cups.bugs] [LOW] STR #2858: CUPS_SC_CMD_DRAIN_OUTPUT may result in loss of print data in backend

Louis Lagendijk louis at lagendijk.xs4all.nl
Thu Jun 12 16:48:02 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Backend function backendRunLoop can buffer print data when a write fails
with an error that can de re-tried. If in this situation the
CUPS_SC_CMD_DRAIN_OUTPUT is received on the side channel,
backendDrainOutput will be called. This function will then start its own
loop, reading NEW data from the input. If I understand the logic
correctly, the data stored in backendRunLoop will not be printed. 

Would it not be better to make the printbuffer and print_bytes global
static data so that backendDrainOutput can pick that data up and print it?

Please correct me if I misunderstood something.

Link: http://www.cups.org/str.php?L2858
Version: 1.3.7





More information about the cups mailing list