Skip to content

Default value for network.connection_timeout causes spurious failures #3013

@MarkWendler

Description

@MarkWendler

Describe the problem

Installing a platform that requires the download of large files fails:

SiliconLabs:silabs@3.0.0 context deadline exceeded
Error during install: context deadline exceeded

The failure no longer occurs after I increase the value of the network.connection_timeout configuration key from its default of 60s:

arduino-cli config set network.connection_timeout 240s

To reproduce

Install the SiliconLabs:silabs platform on a machine with a slower Internet connection:

arduino-cli core install SiliconLabs:silabs

or:

arduino-cli core install esp32:esp32 --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json

Expected behavior

The network.connection_timeout configuration key has a default value that does not result in spurious cancellations of downloads.

Reasons:

  • CI/CD systems work by default configs and
  • out of the box usability for beginners

Arduino CLI version

1.3.1

Operating system

Linux

Operating system version

Ubuntu WSL

Additional context

For Arduino IDE users, the error message has a slightly different format from the one printed by the arduino-cli core install command:

Failed to install platform: 'SiliconLabs:silabs@3.0.0'.
Error: 4 DEADLINE_EXCEEDED: net/http: request canceled (Client.Timeout or context cancellation while reading body)

Additional reports

Related

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: resolvedIssue was resolvedtopic: codeRelated to content of the project itselftopic: package-managementRelated to the packaging and managing of the platform/librariestype: imperfectionPerceived defect in any part of project

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions