-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply backpressure to downloader on slow updates (#202)
It's possible for the firmware download to be faster than fwup can write to eMMC or MicroSD. This causes the message queue to the update manager to balloon as data starts queuing up in route to fwup. On a device without much extra memory, this can be a cause of the following error: ``` 04:14:26.957 [warn] __vm_enough_memory: pid: 87, comm: erts_sched_1, not enough memory for the allocation ``` This commit makes the asynchronous downloader updates synchronous so fwup can push back when the writes are time consuming. The backpressure results in the TCP receive buffers filling and eventually the download slowing.
- Loading branch information
Showing
1 changed file
with
31 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters