fix is_connected with http protocol