HyperFastCgi
HyperFastCgi copied to clipboard
Dummy socket connections never closed by ManagedFastCgiListener
I'm not sure if you will want to fix this but by using a Monit socket health check HyperFastCgi was leaving socket connections open.
In monit you can do this
if failed unixsocket /tmp/hyperfastcgi.socket
then restart
Or with netcat do
nc -U /tmp/hyperfastcgi.socket
And because neither is valid Fast CGI, or send any data at all, the connection is never closed
ll /proc/`pidof mono`/fd/ | grep socket | wc -l
netstat -ap | grep mono | wc -l
I tried to dig further with an intermediate socket using socat... but couldn't spot anything http://pastebin.com/XacKRCCK
socat -t2 -d -d -d -d -x -v UNIX-LISTEN:/tmp/test.socket,mode=777,reuseaddr,fork UNIX-CONNECT:/tmp/hyperfastcgi.socket
The native listener did not have this problem. Excluding this monit check resolves my problem so feel free to close this issue if you don't feel it is worth fixing.