wrk2
wrk2 copied to clipboard
Re-connect when peer closes the connection
It was accumulating close-wait sockets for when peer closed connections, the code seemed to want to re-connect but was missing some corner cases (wasn't re-producible except under high load). This fixes it to reconnect (verified that it doesn't accumulate close-waits under the same load, same env).