Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add timeout for --checkpoint-sync-url #3521

Conversation

MaboroshiChan
Copy link
Contributor

@MaboroshiChan MaboroshiChan commented Aug 29, 2022

Issue Addressed

Have --checkpoint-sync-url timeout

Proposed Changes

I added a parameter for get_bytes_opt_accept_header<U: IntoUrl> which accept a timeout duration, and modified the body of get_beacon_blocks_ssz and get_debug_beacon_states_ssz to pass corresponding timeout durations.

@michaelsproul michaelsproul added the ready-for-review The code is ready for review label Aug 29, 2022
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

I've confirmed that this works and outputs a TimedOut error when requesting a checkpoint from a server that times out

Aug 31 01:02:36.294 INFO Starting checkpoint sync remote_url: http://240.0.0.0:8000/, service: beacon
Aug 31 01:03:36.300 CRIT Failed to start beacon node reason: Error fetching finalized block from remote: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(240.0.0.0)), port: Some(8000), path: "/eth/v2/beacon/blocks/finalized", query: None, fragment: None }, source: TimedOut })


There's a code freeze in effect at the moment while we release v3.1.0, so we'll merge your pull request after that release has shipped. Until then I'll mark this PR as approved but blocked.

@michaelsproul michaelsproul added blocked ready-for-merge This PR is ready to merge. v3.1.2 Release after v3.1.0 (formerly v3.1.1) and removed ready-for-review The code is ready for review blocked labels Aug 31, 2022
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Sep 5, 2022
## Issue Addressed

[Have --checkpoint-sync-url timeout](#3478)

## Proposed Changes

I added a parameter for `get_bytes_opt_accept_header<U: IntoUrl>` which accept a timeout duration, and modified the body of `get_beacon_blocks_ssz` and `get_debug_beacon_states_ssz` to pass corresponding timeout durations.
@bors bors bot changed the title Add timeout for --checkpoint-sync-url [Merged by Bors] - Add timeout for --checkpoint-sync-url Sep 5, 2022
@bors bors bot closed this Sep 5, 2022
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
## Issue Addressed

[Have --checkpoint-sync-url timeout](sigp#3478)

## Proposed Changes

I added a parameter for `get_bytes_opt_accept_header<U: IntoUrl>` which accept a timeout duration, and modified the body of `get_beacon_blocks_ssz` and `get_debug_beacon_states_ssz` to pass corresponding timeout durations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. v3.1.2 Release after v3.1.0 (formerly v3.1.1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants