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

fix: monitor stuck on wait when closing #441

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

jhkimqd
Copy link
Contributor

@jhkimqd jhkimqd commented Nov 25, 2024

Description

This PR aims to fix an issue where monitor would get stuck in a wait state before closing. The time.Sleep(5 * time.Second) was added in #388 to allow the monitor to have enough time to render in cases of infinitely hanging cases before exiting.

stuck-on-close

Removing this does not seem to affect monitor in normal cases, but in cases where there may be higher latencies (perhaps due to an issue in the user's environment, or the RPC itself), it may not give enough time to attempt to connect. However, 5 seconds seemed to be too optimistic, and ideally there shouldn't be this big of a delay for this in a production network.

@jhkimqd jhkimqd requested a review from leovct November 25, 2024 01:23
cmd/monitor/monitor.go Outdated Show resolved Hide resolved
@jhkimqd jhkimqd force-pushed the jihwan/fix-monitor-close-time branch from 391ed1f to 2b498a7 Compare November 25, 2024 08:45
@jhkimqd jhkimqd enabled auto-merge November 25, 2024 08:45
@jhkimqd jhkimqd merged commit 8546da2 into 0xPolygon:main Nov 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants