Fix recorder reconnect over HTTPS, close #2377