Skip to content

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
@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