Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432750 - dev-dotnet/xsp - Connections leaking in Mono.Webserver.FastCgi
Summary: dev-dotnet/xsp - Connections leaking in Mono.Webserver.FastCgi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL: https://github.com/mono/xsp/commit/d2...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-08-25 17:06 UTC by gentoo
Modified: 2012-09-15 12:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2012-08-25 17:06:55 UTC
Please integrate the following github commit into the XSP-2.10 package ebuild.  It is essential for a working fastcgi-mono-server4 via a unix socket.  Without this patch, there is a massive handle leak when the service gets hit with anything but idle load.

https://github.com/mono/xsp/commit/d2c4a279942a4575b80618719646d0767c077e96

The bu info can be seen in the mono bug tracker @ https://bugzilla.xamarin.com/show_bug.cgi?id=3765


Reproducible: Always

Steps to Reproduce:
1. Host a fastcgi on a unix port
2. load up a HelloWorld.aspx test site
3. hold down F5 in a single web browser
4. run "lsof|grep mono|grep identify| wc -l"

Actual Results:  
You'll see that the open sockets saying "can't identify protocol" grow quickly over time and rarely close.

Expected Results:  
lsof command reports 0 or very close to it, dropping back to 0 after the test has been stopped.

Setting this to critical, as the leak causes the mono process hosting the application to exhaust file handles very quickly and start failing to process requests due to RLIMIT_NOFILE being hit.

No easy work around aside from moving away from fastcgi to mod_mono, which has other issues...
Comment 1 Pacho Ramos gentoo-dev 2012-09-15 12:46:52 UTC
+*xsp-2.10.2-r2 (15 Sep 2012)
+
+  15 Sep 2012; Pacho Ramos <pacho@gentoo.org>
+  +files/xsp-2.10.2-endrequest.patch, +xsp-2.10.2-r2.ebuild, -xsp-2.10.2.ebuild:
+  Fix Connections leaking in Mono.Webserver.FastCgi, bug #432750 by gentoo at
+  pasichnyk dot net. Drop old.
+