handle https timeouts the same way as http