Closed lstrojny closed 2 years ago
Thanks for the interesting report.
I can reproduce the issue, thanks.
Thanks again for the report. An update with that bug fixed (I believe) has been pushed into the development
branch.
If you got a chance to check it out, that would be great. That bug has been there for a long time!
Fix looks good to me. Tried running the latest development
version and despite shairport being hammered by monitoring probes, number of open files stay constant. Thank you for looking into a somewhat esoteric issue and thank you very much for shairport in general.
What happened?
When a client connects to shairport-sync and then eventually disconnects, the socket stays open and will eventually exhaust the
nofiles
limit on the system.Here is how to trigger the issue (use
lsof | grep shairport | wc -l
to count the number of open files on the server).This is what the state of the connections is shortly after quitting telnet:
Expectation would be that once telnet disconnects the socket on the server side is closed as well.
Relevant log output
Configuration Information.
How did you install Shairport Sync?
Built from source
Check previous issues