Too Many TCP CLOST_WAIT Connections

I build the hue from the branch-4.6.0. And I have used it on product enviroment for nearly 2 years.

Recently I found that there were many TCP CLOST_WAIT connections created by hue on my server. And this made my hue response very slow. I works when I restart the hue. This case has repeated for several times.