BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

Increasing sleeps #632

Closed utdrmac closed 6 years ago

utdrmac commented 6 years ago

Description

One of the biggest complaints in Telegram is people getting lots of timeout errors. I found the code to be too conservative in increasing the amount of sleep time for each error, which usually resulted in temp IP bans. This pull request increases sleep timeouts very aggressively and adds a few sleeps in other parts to help prevent timeout errors.

Yes, I understand that timeout errors are temporary but from a non-programmer's view, seeing error after error after error does not feel good about the software you are running, even if the error it outside your control. This patch simply helps reduce the number of those errors.

TESTING STAGE

Been running with this code for about 2 months.

Types of changes

Checklist: