Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(solc): add timeout and error detection for releases lookup #759

Merged
merged 3 commits into from
Jan 5, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 5, 2022

Motivation

It seems like https://binaries.soliditylang.org is down, so Releases requests fail after some time with a DNS lookup error. which highlighted an issue:

a) takes quite a bit of time
b) all checksums fail bc no checksums to compare against

Ref #751

Solution

  • Add timeout to Releases lookup, 3secs is probably reasonable
  • only check checksums of we could lookup releases successfully

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending the failing test

@mattsse mattsse force-pushed the matt/soften-checksums branch from 16d9ec3 to 1770f1d Compare January 5, 2022 17:55
@gakonst gakonst merged commit 3da5a41 into gakonst:master Jan 5, 2022
@gakonst
Copy link
Owner

gakonst commented Jan 5, 2022

god bless savior PR

gakonst added a commit to foundry-rs/foundry that referenced this pull request Jan 5, 2022
introduces auto detection of hh vs dapptools style directories: gakonst/ethers-rs#761
fixes releases lookup timeout and checksum checking: gakonst/ethers-rs#759
charisma98 added a commit to charisma98/foundry that referenced this pull request Mar 4, 2023
introduces auto detection of hh vs dapptools style directories: gakonst/ethers-rs#761
fixes releases lookup timeout and checksum checking: gakonst/ethers-rs#759
0129general added a commit to 0129general/FoundryProject that referenced this pull request May 8, 2024
introduces auto detection of hh vs dapptools style directories: gakonst/ethers-rs#761
fixes releases lookup timeout and checksum checking: gakonst/ethers-rs#759
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants