Closed Bug 618316 Opened 11 years ago Closed 6 years ago

Downloading Fennec update doesnt resume when switching connectivity


(Toolkit :: Application Update, defect)

Not set



Tracking Status
fennec - ---


(Reporter: tchung, Unassigned)



I just tried updating my fennec from 12/09 build to the 12/10 build, via connected to wifi.  While downloading, I switched out of wifi to 3G.   The fennec download notification went away and did not resume the update.  Can we get update to resume while switching networks?

Dependency of bug 609366?

1) install fennec 12/09 nightly.  Log into wifi connection
2) find the nightly update, and download it
3) while the download is in progress, hop over to 3G connection
4) Verify the fennec notification dissapears and the download cancels

- download resumes when switching networks

- download cancels
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0-
Duplicate of this bug: 642042
Duplicate of this bug: 670821
Robert, do you have any thoughts, what would be required to fix this bug (or rather implement this feature) in the update service? I guess we need some kind of a timeout with retry before marking the download as failed and canceling it.
Assignee: nobody → alexp
Bug is reproducible when updating from 08/07 build to the 08/08 build on HTC Desire (Android 2.2)

Build download is not resumed when switching networks or when a network connection is lost then re-connected.
Alex, can you check what nsIIncrementalDownload is returning when this occurs?
Here's what I get in the log:
*** AUS:SVC Downloader:onStopRequest - original URI spec:, final URI spec:, status: 2152398862
*** AUS:SVC Downloader:onStopRequest - non-verification failure
*** AUS:SVC getStatusTextFromCode - transfer error: Connection timed out, code: 2152398862
*** AUS:SVC Downloader:onStopRequest - setting state to: download-failed
*** AUS:SVC Downloader:onStopRequest - all update patch downloads failed

Do you need more details?
I think NS_ERROR_NET_TIMEOUT will need to be special cased and have a fallback so if it happens to many times without successfully downloading the user is informed of the error so they can download a new build.
I've checked this issue and noticed that, when switching networks, on build:
Build id : Mozilla/5.0 (Android;Linux armv7l;rv:2.0b8pre)Gecko/20101123
Firefox/4.0b8pre Fennec/4.0b3pre
Download is suspended but it's not resumed.
and on build:
Build id : Mozilla/5.0 (Android;Linux armv7l;rv:2.0b8pre)Gecko/20101124
Firefox/4.0b8pre Fennec/4.0b3pre
Download cancels

Possible range:
Would it be possible to have the update download to download to the download folder and also in the download notifications?
tracking-fennec: - → ?
Assignee: alexp → nobody
Component: General → Application Update
Product: Fennec → Toolkit
QA Contact: general → application.update
tracking-fennec: ? → -
Fennec doesn't use the app update code anymore
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.