Skip to content

update download uses lot of cpu, and may lost connection, and error not catchable #1010

@zh99998

Description

@zh99998
  • Version: 10.8.1
  • Target: win32
  1. when downloading updates, it uses lots of CPU.
    Imgur

(when not in update, it only use < 10%).

  1. update may lost connection and get a incomplete package, then throw SHA2 checksum error. my service is over https, and a complete package is always correct. but they often download a incomplete one. there is apart of my nginx log:
    Imgur

my app total length is 35925496, but he failed 2 times before got a complete one.
I'm sure he is not close my app manually, he's waiting for update, and got a sha2 checksum error.

his network to my server works well, when using wget or browser, download will always complete.

  1. the sha2 checksum error is not catchable.
    I've listened autoUpdater.on("error") event, but still throws a error window.

Imgur

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions