Skip to content

Reachability keeps monitoring the host of the first server URL after Parse.setServer #1935

Closed

Description

@mtrezza

New Issue Checklist

Issue Description

+[PFReachability sharedParseReachability] creates the shared reachability once, with the host of the server URL at that time, and +[Parse setServer:] doesn't update it. The eventually queue uses it to decide whether it's connected: it doesn't send pending commands while that host is reported as not reachable, and it starts sending them when that host becomes reachable again. After setServer: changes the server URL to another host, the eventually queue still follows the reachability of the previous host.

Found while working on #1920 (#1934). It wasn't investigated in which cases the two hosts are reported differently, for example when the DNS name of the previous host no longer resolves.

Steps to reproduce

Traced in the code:

  1. Initialize Parse with a server URL.
  2. Call +[Parse setServer:] with a server URL on another host.

Actual Outcome

PFReachability monitors the host of the first server URL.

Expected Outcome

PFReachability monitors the host of the current server URL.

Environment

Client

  • Parse ObjC SDK version: master (4c76f05)

Server

  • Not applicable

Activity

  1. parse-github-assistant commented on Oct 23, 2026

    @parse-github-assistant

    🚀 Thanks for opening this issue!

    ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

  2. parseplatformorg commented on Oct 23, 2026

    @parseplatformorg
    Contributor

    🎉 This change has been released in version 7.0.3

  3. added
    state:released
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:released

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions