Active socket with reconnection