[Printing-architecture] Fix for STR #4187 incomplete, missing part attached

Michael Sweet msweet at apple.com
Mon Sep 9 14:40:20 UTC 2013


Till,

This is already fixed for <rdar://problem/14484313>, which was created in response to the bug below back in July.  The 1.6.4 and 1.7.0 releases that are queued up both contain the fix.

(and FWIW, "n" needs to be ssize_t, not int...)


On Sep 5, 2013, at 5:17 PM, Till Kamppeter <till.kamppeter at gmail.com> wrote:

> Hi,
> 
> it seems that if a CUPS client (like the print dialog of LibreOffice)
> stays connected to CUPS for a long time, the connection can get dropped
> and the client does not reconnect.
> 
> This is handled by the following Ubuntu bug report:
> 
> https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1020048
> 
> and also upstream by the following report in the former STR system:
> 
> http://www.cups.org/str.php?L4187
> 
> The STR was considered fixed by applying a patch, but the reporter of
> the Ubuntu bug has found out that another patch is needed to complete
> the fix. See comment #37 in the Ubuntu report:
> 
> https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1020048/comments/37
> 
> The current CUPS 1.7.0rc1 has this "else" part but there is still
> missing that "if" has also to close the connection when the result of
> the recv() function is zero, meaning EOF, which happens when the server
> terminates the connection.-
> 
> The attached patch adds this missing part.
> 
> In comment #44 of the Ubuntu report it is confirmed that this missing
> piece applied fixes the problem completely:
> 
> https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1020048/comments/44
> 
> Can you apply this patch to the final CUPS 1.7.0? Thanks.
> 
>   Till
> 
> <handle-server-terminating-connection.patch>

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair



More information about the Printing-architecture mailing list