Closed
Bug 1063648
Opened 11 years ago
Closed 11 years ago
Harder to connect to simulators
Categories
(DevTools Graveyard :: WebIDE, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 35
People
(Reporter: jryans, Assigned: paul)
Details
Attachments
(1 file, 1 obsolete file)
|
2.82 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•11 years ago
|
||
Paul, any guess why this happens? Maybe there's a race somewhere in the network code?
Flags: needinfo?(paul)
| Reporter | ||
Comment 2•11 years ago
|
||
This might be platform-specific, like some other network issues we've seen.
| Assignee | ||
Comment 3•11 years ago
|
||
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)
Comment 4•11 years ago
|
||
FWIW I see this every time since Saturday.
| Assignee | ||
Comment 5•11 years ago
|
||
The only different I see is that we add an extra reference to the transport.
Comment 6•11 years ago
|
||
It's not realy harder, but just impossible to connect to a simulator.
Bug 1062748 regressed simulators. We shouldn't cache transport.
| Assignee | ||
Comment 7•11 years ago
|
||
| Reporter | ||
Comment 8•11 years ago
|
||
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+
| Assignee | ||
Comment 9•11 years ago
|
||
Assignee: nobody → paul
Attachment #8485793 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8485835 -
Flags: review?(jryans)
| Reporter | ||
Updated•11 years ago
|
Attachment #8485835 -
Flags: review?(jryans) → review+
| Reporter | ||
Comment 10•11 years ago
|
||
Filed bug 1064405 about future API change for custom transport.
| Assignee | ||
Comment 11•11 years ago
|
||
| Reporter | ||
Comment 12•11 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 13•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•