Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Do not restart the agent if POST /update call should do nothing #957

Copy link
Copy link
Open
@Xayton

Description

@Xayton
Issue body actions

When the agent processes the POST /update command, it will check if the latest version is newer than the agent version. If it's not, the command should not do anything. Instead it always restarts the agent.

  • It should also download the full executable only when it's not on the latest version, instead of always doing it.
  • If possible, the user agent used when downloading the updates should be changed from the default Go-http-client/2.0 to something like Arduino-Cloud-Agent/1.5.0.

https://github.com/arduino/arduino-create-agent/blob/main/update.go#L37-L49
The code above should be improved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.