-
Notifications
You must be signed in to change notification settings - Fork 878
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
Avoid infinite loop #159
Comments
Hi @NicosKaralis looks like the problem is not the library itself but the script you run to use it. Regards |
Hi @reiven , thanks for the fast reply My problem is not taking care of the connection. To clarify
The problem is that on Because network instability my script can push to the redis client the status of the network, but only if the loop is stopped, which doesn't happen until internet is back Do you understand the problem now? Everything works fine, IF the network cooperates. IF the network does not cooperate then this lib enters an infinite loop and there is no way to warn the other peers about the connectivity issues Is there a python way to check if the If not, that's ok, I'll make a fork of this and solve my problem. But I would like if this could be done without forking |
@NicosKaralis what i mean is that you can check the internet conection before calling the history function so you can catch the problem and not call the history function until the internet connection goes back. Regards |
I'm not a python developer but we are using your lib to make payments with bitcoin. Currently the script we made works fine with one problem.
The payments are collected from a redis server in a private network and processed on a machine that sometimes goes offline. When the payment machine goes offline the scripts does not halt execution or raises an exception. It just prints
<urlopen error [Errno 8] nodename nor servname provided, or not known>
and keeps on loop for ever until the internet is back online.Is there a way to make the script fail fast? So I could add to the redis server the fail reason being
Internet down
and log that event and reschedule that paymentI know I can make a fork and add the functionality that I need, but I was hoping for a already built solution
Below is an output example of my script
The text was updated successfully, but these errors were encountered: