We are running HAProxy to direct mysql traffic from PHP to a set of mysql servers. However, due to an issue with the way the mysql-client sends TCP packets, we get a ton of connections in TIME_WAIT with concurrent port utilization at 50k+, and end up with SOCKERR messages on HAProxy due to port exhaustion under extremely heavy load as described here - http://blog.haproxy.com/2012/12/12/haproxy-hig
![tcp_tw_reuse and tcp_tw_recycle not working in specific environment](https://cdn-ak-scissors.b.st-hatena.com/image/square/1d7824625a3ecbc3a39062b14aaa9db8a44aa022/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fserverfault%2FImg%2Fapple-touch-icon%402.png%3Fv%3D9b1f48ae296b)