Bug 1021512

Summary: cups-browsed opens many connection an don't close it
Product: [Fedora] Fedora Reporter: Jürgen Holm <holm>
Component: cups-filtersAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: holm, jpopelka, twaugh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-filters-1.0.40-4.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-10 06:38:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
cups-browsed.conf none

Description Jürgen Holm 2013-10-21 12:41:39 UTC
Description of problem:
With cups-filters-1.0.40-3.fc19.x86_64 I got many (currently ~300 ) CLOSE_WAIT connections
tcp        1      0 Enterprise.theori:58593 cups.theorie.physik:ipp CLOSE_WAIT  1010/cups-browsed   

and ~6 ESTABLISHED connections:
tcp        0      0 Enterprise.theori:33139 cups.theorie.physik:ipp ESTABLISHED 1010/cups-browsed  

Because of this our cups server, responseable for ~100 clients breaks with MaxClients too low: Max clients reached, holding new connections...

Version-Release number of selected component (if applicable):
1.0.40-3.fc19.x86_64

How reproducible:
always

Steps to Reproduce:
1. systemctl start  cups-browsed.service
2. wait a couple of hours and see netstat -tap|grep cups-browsed
3.

Actual results:


Expected results:


Additional info:
No problems with 1.0.34-7.fc19.x86_64

Temporary fix:
cat <<EOF >/etc/cron.hourly/restart-cups-browsed
#!/bin/bash
systemctl start  cups-browsed.service
EOF
chmod a+x /etc/cron.hourly/restart-cups-browsed

Comment 1 Tim Waugh 2013-10-21 13:00:14 UTC
Please attach /etc/cups/cups-browsed.conf.

It looks like the IPP subscriptions code has a socket leak somewhere. :-(

Comment 3 Jürgen Holm 2013-10-21 13:38:21 UTC
Created attachment 814606 [details]
cups-browsed.conf

The host to poll cups resolves:
Enterprise: ~>host cups
cups.theorie.physik.uni-goettingen.de has address 134.76.88.193

Comment 4 Tim Waugh 2013-10-21 13:41:35 UTC
Thanks.

I think I've found the leaks.

Comment 5 Fedora Update System 2013-10-21 13:43:03 UTC
cups-filters-1.0.40-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/cups-filters-1.0.40-4.fc19

Comment 6 Fedora Update System 2013-10-22 05:02:23 UTC
Package cups-filters-1.0.40-4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-filters-1.0.40-4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19662/cups-filters-1.0.40-4.fc19
then log in and leave karma (feedback).

Comment 7 Jürgen Holm 2013-10-22 08:44:20 UTC
Ok, 1.0.40-4 fix the Bug.
Thanks for the hispeed fix!

Comment 8 Tim Waugh 2013-10-22 11:44:46 UTC
Thanks. Sent upstream.

Comment 9 Fedora Update System 2013-10-23 07:10:20 UTC
cups-filters-1.0.40-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2013-18453/cups-filters-1.0.40-4.fc20

Comment 10 Fedora Update System 2013-10-30 01:58:31 UTC
cups-filters-1.0.40-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Tim Waugh 2013-11-04 14:40:48 UTC
Re-opening for Fedora 20.

Comment 12 Fedora Update System 2013-11-10 06:38:53 UTC
cups-filters-1.0.40-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.