Closed
Bug 884131
Opened 11 years ago
Closed 11 years ago
Messages to netd need sequence number on gonk-JB
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mwu, Assigned: vchang)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
Messages to netd now require a sequence number at the beginning.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → vchang
Assignee | ||
Comment 1•11 years ago
|
||
Vliu is interested in this bug. Assign the bug to him.
Assignee: vchang → vliu
Comment 2•11 years ago
|
||
For vold, the sequence number could be zero, in which case it isn't checked (and so it doesn't need to increment).
When you use a sequence number, you'll also get a sequence number in the replies as well.
Assignee | ||
Comment 3•11 years ago
|
||
Netd also inherits the FrameworkListener class. So the sequence number could be zero like the vold case, too.
Attachment #783055 -
Flags: review?(dhylands)
Assignee | ||
Comment 4•11 years ago
|
||
Sorry, I posted the wrong file. Please ignore previous one.
Assignee: vliu → vchang
Attachment #783055 -
Attachment is obsolete: true
Attachment #783055 -
Flags: review?(dhylands)
Attachment #783057 -
Flags: review?(dhylands)
Comment 5•11 years ago
|
||
So I see you setting the sequence number to zero when you send the commands.
However, I would have expected that onNetMessage should also have some code to remove the sequence number from the response, otherwise the variable reason (from onNetdResponse) will have a leading "0 " when sequence numbers are used.
Flags: needinfo?(vchang)
Assignee | ||
Comment 6•11 years ago
|
||
Thanks for your reminding. I'll post a new patch to address your comments soon.
After upgrading the repo from jb 4.2 to JB 4.3, I can't startup b2g successfully.
The screen stopped in Google .... I'll try to get a clean repo and try again.
Flags: needinfo?(vchang)
Assignee | ||
Comment 7•11 years ago
|
||
I have verified this patch in nexus 4 and unagi.
Attachment #783057 -
Attachment is obsolete: true
Attachment #783057 -
Flags: review?(dhylands)
Attachment #784754 -
Flags: review?(dhylands)
Comment 8•11 years ago
|
||
Comment on attachment 784754 [details] [diff] [review]
Patch v1.1 for mc
Review of attachment 784754 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/net_worker.js
@@ +324,5 @@
> + }
> + result += String.fromCharCode(octet);
> + }
> + return null;
> +}
nit: I think that its worth a comment to explain why you're writing your own splice routine and not using built in one.
Attachment #784754 -
Flags: review?(dhylands) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Add the comment to split() function.
Attachment #784754 -
Attachment is obsolete: true
Assignee | ||
Comment 10•11 years ago
|
||
push to inbound.
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6c7b244f1b7
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•