-
Notifications
You must be signed in to change notification settings - Fork 115
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
Very long Control-C delay during first minute or so is annoying #585
Comments
The cause of this unresponsiveness is slow sequential initialisation in There are a number of steps which take time depending on network activity, during which Control-C is ignored. The worst of these is the discovery phase, which effectively runs as a "foreground task" for some minutes before allowing the sync phase to be initialised. This Line 162 in 6d4205b
There are other steps which are usually fast, but could be slow if you are unlucky (e.g. UPNP/NAT-PMP configuration). So the issue isn't one single Async cancellation tokens (set by the Control-C signal) are a general solution to this problem, but that may require a change to Chronos. A more pragmatic (but ugly) immediate solution is to make P2P |
Note, in configurations where no peers are successfully connected to, the This happens when static nodes are set and discovery is disabled. If the static node is down or refuses connection, Nimbus Eth1 doesn't retry, |
Yes, I was having similar issues with the p2p implementation of nim-eth when using it for nim-waku wakunode. Back then I just did this: https://github.com/status-im/nim-waku/blob/master/waku/v1/node/wakunode1.nim#L61 I'm pretty sure I had created an issue for this back then but can't seem to find it back. |
During the first minute or so after starting
nimbus
, pressing control-C is trapped and has no effect for a rather long time. This is very annoying, if you just started something to debug then want to do something else. It's easily worked around by Control-Z then killing the process, but this is still a poor experience.After the first minute or so, control-C exits reasonably fast, so it can do this.
The text was updated successfully, but these errors were encountered: