Closed
Bug 810097
Opened 13 years ago
Closed 12 years ago
B2G MMS: Retry retrieval on error
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: vicamo, Assigned: ctai)
References
Details
(Keywords: feature)
Attachments
(2 files, 6 obsolete files)
|
5.74 KB,
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
|
2.23 KB,
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
See also bug 810067 for retrieval mode and bug 810091 for duplicated notification.
| Reporter | ||
Updated•13 years ago
|
| Reporter | ||
Updated•12 years ago
|
blocking-b2g: --- → leo?
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ctai
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #718277 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #718278 -
Flags: feedback?(vyang)
| Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 718278 [details] [diff] [review]
Retry Retrieval
Review of attachment 718278 [details] [diff] [review]:
-----------------------------------------------------------------
Let's hide retrial in RetrieveTransaction::run(). Have something like:
RetrieveTransaction::run(callback) {
this.retryCount = 0;
this.retrieve(function (mmsStatus, msg) {
if (mmsStatus == MMS.MMS_PDU_STATUS_DEFERRED &&
this.retryCount < MAX_RETRY_COUNT) {
this.retryCount++;
let self = arguments.callee;
new timer(ONE_SHOT, function () {
this.retrieve(self);
});
return;
}
if (callback) {
callback
}
});
}
RetrieveTransaction::retrieve(callback) {
// original run()
}
Attachment #718278 -
Flags: feedback?(vyang)
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #718278 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•12 years ago
|
||
Attachment #718318 -
Attachment is obsolete: true
Attachment #718319 -
Flags: feedback?(vyang)
| Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 718319 [details] [diff] [review]
Retry Retrieval
Review of attachment 718319 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mms/src/ril/MmsService.js
@@ +39,5 @@
> const RETRIEVAL_MODE_AUTOMATIC = "automatic";
> const RETRIEVAL_MODE_NEVER = "never";
>
> +const MAX_RETRY_COUNT = 3;
> +const DELAY_TIME_TO_RETRY = 5000;
How about "dom.mms.retrievalRetryCount", "dom.mms.retrievalRetryInterval"?
@@ +504,5 @@
> + }).bind(this));
> + },
> +
> + /**
> + * @param callback [optional]
That's not optional now.
@@ +511,5 @@
> + */
> + retrieve: function retrieve(callback) {
> + let callbackIfValid = function callbackIfValid(mmsStatus, msg) {
> + if (callback) {
> + callback(mmsStatus, msg);
ditto.
Attachment #718319 -
Flags: feedback?(vyang)
| Assignee | ||
Comment 7•12 years ago
|
||
Attachment #718319 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #718326 -
Flags: review?(vyang)
| Reporter | ||
Comment 8•12 years ago
|
||
Comment on attachment 718326 [details] [diff] [review]
Retry Retrieval
Review of attachment 718326 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you :)
Attachment #718326 -
Flags: review?(vyang) → review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
| Reporter | ||
Comment 9•12 years ago
|
||
Keywords: checkin-needed
| Assignee | ||
Comment 10•12 years ago
|
||
| Assignee | ||
Comment 11•12 years ago
|
||
Attachment #718834 -
Attachment is obsolete: true
| Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 718836 [details] [diff] [review]
Retry for TransientError
It is not necessary.
Attachment #718836 -
Attachment is obsolete: true
| Reporter | ||
Comment 13•12 years ago
|
||
Comment on attachment 718836 [details] [diff] [review]
Retry for TransientError
Review of attachment 718836 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mms/src/ril/MmsService.js
@@ +498,5 @@
> + this.retryCount = 0;
> + let that = this;
> + this.retrieve((function retryCallback(mmsStatus, msg) {
> + if ((MMS.MMS_PDU_STATUS_DEFERRED == mmsStatus ||
> + gMmsTransactionHelper.isTransientError(mmsStatus)) &&
We don't need this. It's already a X-Mms-Status. Just check whether does it equals to MMS.MMS_PDU_STATUS_DEFERRED is sufficient. Therefore, we don't need isTransientError(), either.
@@ -818,5 @@
> debug("retrievedMsg = " + JSON.stringify(retrievedMsg));
> - if (this.isTransientError(mmsStatus)) {
> - // TODO: remove this check after bug 810097 is landed.
> - return;
> - }
Removing code here should have done, but just upload a follow-up instead.
Attachment #718836 -
Attachment is obsolete: false
Attachment #718836 -
Flags: review-
| Assignee | ||
Comment 14•12 years ago
|
||
Attachment #718836 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #718841 -
Flags: review?(vyang)
| Reporter | ||
Updated•12 years ago
|
Attachment #718841 -
Flags: review?(vyang) → review+
| Reporter | ||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/931ad73babc6
https://hg.mozilla.org/mozilla-central/rev/b082c2abd269
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 17•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/8c762cea5a5d
https://hg.mozilla.org/releases/mozilla-b2g18/rev/a06f082e0a86
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → fixed
Updated•12 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•