Added reconnect logic for peer in http_server