Added port acquisition attempts limit to Sockets.