Closed Bug 1063648 Opened 11 years ago Closed 11 years ago

Harder to connect to simulators

Categories

(DevTools Graveyard :: WebIDE, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 35

People

(Reporter: jryans, Assigned: paul)

Details

Attachments

(1 file, 1 obsolete file)

After landing bug 1062748 for custom transports, it's now much harder to connect to a simulator. Most connections fail for me. But I really do not understand why that happens, since bug 1062748 shouldn't change this path. The transport's output stream fails with NS_ERROR_CONNECTION_REFUSED.
Paul, any guess why this happens? Maybe there's a race somewhere in the network code?
Flags: needinfo?(paul)
This might be platform-specific, like some other network issues we've seen.
Meh. What happened? You're sure it's related to bug 1062748? Maybe it's another symptom of a race I was running into with connectPipe().
Flags: needinfo?(paul)
FWIW I see this every time since Saturday.
The only different I see is that we add an extra reference to the transport.
It's not realy harder, but just impossible to connect to a simulator. Bug 1062748 regressed simulators. We shouldn't cache transport.
Attached patch v1 (obsolete) — Splinter Review
Comment on attachment 8485793 [details] [diff] [review] v1 Review of attachment 8485793 [details] [diff] [review]: ----------------------------------------------------------------- This does fix the simulator issue for me as well. It is a bit awkward though (this is from the first patch that added custom transports) that the custom transport case can't support the |keepConnecting| mode, since we only pass in an already connected transport. If we want to have this ability, we'd need to pass in a function to call to make transport in the custom case, in the same way that we use |connectPipe| and |debuggerSocketConnect|. We can change this in a follow-up, but do you think we want it? We'd likely have to change the API used by fxdt-adapters. My suggestions for the current code are: * Rename |this._transport| to |this._customTransport| since it's now only used for that purpose * Skip the |keepConnecting| timer when there is a |this._customTransport| since it currently is meaningless * Clear out |this._customTransport| on disconnect so we don't keep it alive
Attachment #8485793 - Flags: feedback+
Attached patch v2Splinter Review
Assignee: nobody → paul
Attachment #8485793 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8485835 - Flags: review?(jryans)
Attachment #8485835 - Flags: review?(jryans) → review+
Filed bug 1064405 about future API change for custom transport.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: