Closed Bug 1064743 Opened 10 years ago Closed 10 years ago

Transport fails after simultaneous sends

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 35

People

(Reporter: ochameau, Assigned: jryans)

References

Details

Attachments

(1 file, 1 obsolete file)

We are most likely mixing upload and some other request done while connecting.
No particular exception appears on client/server.
We should probably busify the UI until requests done on startup are done.
The protocol doesn't like mixing requests...
so just wait for webapps-store.js to be fully loaded before accepting actions.

I may feel slower but it will prevent random breakages!

https://tbpl.mozilla.org/?tree=Try&rev=cf6f82e8208e
Assignee: nobody → poirot.alex
Attachment #8486311 - Flags: review?(jryans)
Hmm, what's the STR to reproduce the issue you are seeing?  Do I need some of your auto-connect patches from bug 1055279?
Flags: needinfo?(poirot.alex)
- Open a local app
- Connect to a device
- and right after selecting the device, try to push a local app [play button]

(in my case it was an app with a significant size - https://github.com/nazar-pc/CleverStyle-Music).

You will see WebIDE disconnecting while uploading the app.
Flags: needinfo?(poirot.alex)
In fact, you've found a bug in the transport!

It failed to correctly support the case of:

transport.send(...)
transport.startBulkSend(...)

in the same tick of the event loop.

I am somewhat surprised we've only noticed this until now...

Patch coming.
Component: Developer Tools: WebIDE → Developer Tools: Framework
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Trying to upload an app just after connecting to a device make it disconnect → Transport fails after simultaneous sends
Assignee: poirot.alex → jryans
Status: NEW → ASSIGNED
Comment on attachment 8486756 [details] [diff] [review]
Support simultaneous sends in the transport

Review of attachment 8486756 [details] [diff] [review]:
-----------------------------------------------------------------

Nice catch!
Attachment #8486756 - Flags: review?(past) → review+
https://hg.mozilla.org/mozilla-central/rev/a815df441343
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: