Ok this is kind of complicated. I have a proxy server setup via Windows. It works great however I am using the server to scrape search engine results. Therefore I am getting a lot of TIME_WAIT ports, because the connections are being closed quickly and need to be reused to scrape a different search term.

The TCPTimedWaitDelay is set at 30 seconds but that is still too long. I need the ports to be able for reuse immediately.

I have done some research and it looks like I need to enable SO_LINGER, however if you have a better option feel free to use your way.

I need this done ASAP. Please PM me.