Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy socket connections never closed by ManagedFastCgiListener #36

Open
kcd83 opened this issue Jul 21, 2015 · 0 comments
Open

Dummy socket connections never closed by ManagedFastCgiListener #36

kcd83 opened this issue Jul 21, 2015 · 0 comments

Comments

@kcd83
Copy link

kcd83 commented Jul 21, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant