Too many open files - CLOSE_WAIT connections build up

I have the same problem.
Here is a detailed description how I reproduce this error:

link