Bug#780856: gnome-settings-daemon: >1000 tcp connections to ipp port in CLOSE-WAIT state

Ansgar Burchardt ansgar at debian.org
Fri Mar 20 19:17:35 UTC 2015


Control: tag -1 + patch upstream

On 03/20/2015 04:11 PM, Ansgar Burchardt wrote:
> gnome-settings-daemon keeps >1000 tcp connections to a remote ipp port
> in CLOSE-WAIT state. From the output from `ss -t':

The bug can be triggered by printing stuff: every time I send a document
to the remote print server, gnome-settings-daemon will leak a file
descriptor with a connection to the print server a bit later.

Running "xvfb-run -a strace -e connect,close gnome-settings-daemon" as a
different user was enough to observe this problem.

I noticed that
  plugins/print-notifications/gsd-print-notifications-manager.c
calls httpConnectEncrypt() in three places, but httpClose() is only
called in renew_subscription().  httpClose() will close the file
descriptor as part of the cleanup...

After adding calls to httpClose() in process_cups_notification() and
cancel_subscription() the file descriptor leak seems to have stopped.
I've attached the patch.

Ansgar

-------------- next part --------------
A non-text attachment was scrubbed...
Name: close-ipp-connections.patch
Type: text/x-diff
Size: 632 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20150320/38ce3050/attachment.patch>


More information about the pkg-gnome-maintainers mailing list