Skip to content

Proxy returns an empty array of tabs for a few seconds after launch #5

@klepikov

Description

@klepikov
  1. Have Safari running on a tethered iOS device.
  2. Launch the proxy with -c :9222 (not sure if -c matters).
  3. Quickly (as in -- scripted) make requests to http://localhost:9222/json.

A few first requests will return "[]", then it will begin returning a correct list of tabs.

I suspect it's a race between the HTTP requests and the proxy's handshake with the device.

Could the proxy hold HTTP responses until the handshake is done? The requests would just take a few seconds when made right after launching the proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions